![]() |
|
#1
|
||||
|
||||
|
301 Redirect for Search Engines
301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. Redirect with htaccess Create a .htaccess file (if does not exists) in your root directory. Redirect permanent / http://www.newurl.com Redirect in PHP <? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.newurl.com" ); ?> |
|
#2
|
||||
|
||||
|
Mod rewrite for 301 redirection
RewriteBase / RewriteRule ^whatever/(.*)$ http://www.domain.com/$1/ [R=301,L] or RewriteRule ^index.htm$ http://www.domain.com/ [R=301,L] The second example only changes one URL. (.*) and $1 work the same way here as in mod_rewrite, so you can easily change a lot of URLs with one line. The only change with redirects and mod_rewrite is the R=301 (Redirect 301). |
|
#3
|
||||
|
||||
|
For changing to www from non-www version of your URL you can use
Quote:
|
|
#4
|
||||
|
||||
|
Here is good article on it
http://www.somebits.com/weblog/tech/...rlResults.html |
|
#5
|
||||
|
||||
|
WebmasterWorld forum pageoneresults says about how 301 works for Google
http://www.webmasterworld.com/forum30/32516.htm Last edited by megri : 12-23-2005 at 08:48 AM. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|