Mobile app version of vmapp.org
Login or Join
Nimeshi995

: Wrestling with some rewrites for Apache I have upgraded my gallery2 to gallery3, and notice that some links no longer resolve correctly. Since the proper way is to redirect these with a 301,

@Nimeshi995

Posted in: #Apache #ModRewrite

I have upgraded my gallery2 to gallery3, and notice that some links no longer resolve correctly. Since the proper way is to redirect these with a 301, that is the way I'm going. The following series need redirecting:

folders:
old: photo.meulie.net/v/various/Gry/
new: photo.meulie.net/various/Gry/
pages:
old: photo.meulie.net/v/Jacob/02112008310.jpg.html
new: photo.meulie.net/Jacob/02112008310
(both are of course just examples. there are 100's of folders & files to redirect...)

I think there were/are also direct links to images, but those I'm not bothering with for now.

Who can help me out? :-)

Regards,
Evert

NB. these are the existing rewrite rules:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?kohana_uri= [QSA,PT,L]
RewriteRule ^$ index.php?kohana_uri= [QSA,PT,L]
RewriteRule ^index.php/(.*) [QSA,R,L]

Where should I insert your lines?

Greetings,
Evert

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Nimeshi995

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme