Help - Search - Members - Calendar
Full Version: 301
The Planet Forums > System Administration > Server Hardware > RaQ Support
expressweb
I have a list of file to be 301 to another URL how can do this
Gary Simat
This makes no sense, what are trying to do...
Catalyst
Makes sense to me ... .htaccess:
CODE
RewriteEngine On

RewriteRule ^/page.htm /new/page.htm [R=301,L]

RewriteRule ^/page2.htm /new/page.htm [R=301,L]

RewriteRule ^/path/page3.htm /new/page.htm [R=301,L]
To explain *why* you'd wanna 301 the pages: if you have existing, index-by-search-engine pages and simply switch them without the 301, you risk losing your indexed pages. It's a handy trick to return them with "301 - Moved Permanently" so they'll be reindexed on the new URLs immediately.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.