Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Need help stripping a 301 redirect url down


ichthyous - 6:52 pm on Mar 21, 2011 (gmt 0)


Ok changed it to this:

RewriteRule ^(photos/)?washington-dc/rosslyn-virginia-skyline-dusk/$ http://example.com/photos/washington-dc/skylines-cityscapes/rosslyn-virginia-skyline-dusk/? [R=301,L]

Didn't work at the top of the list of rewrite rules, before this:

Options +FollowSymlinks
RewriteEngine On

RewriteBase /


But it did work if I placed the rule after the above code and before the rewrite rules for showItem. I would prefer not to stick 200 unqiue rewrite rules in the middle of the main block of gallery rewrite code though because that block is generated automatically by the url rewrite module and if any changes are made to the module it wipes that block and rewrites it all. Can I add the:

Options +FollowSymlinks
RewriteEngine On

RewriteBase /

At the top of the htaccess file? If it's in the htaccess file twice is that a problem? Thanks for the help!


Thread source:: http://www.webmasterworld.com/apache/4285190.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com