Webmaster Forums  

Go Back   Webmaster Forums > Search Engine & Website Promotion > Google
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-16-2005, 06:13 AM
megri's Avatar
megri megri is offline
Administrator
 
Join Date: Mar 2004
Location: Chandigarh India
Posts: 818
megri is on a distinguished road
Send a message via MSN to megri Send a message via Yahoo to megri
Default 301 Redirect for Search Engines

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" );
?>
__________________
Mohnesh Kohli - Forum Administrator
India SEO Search Engine Optimization
Reply With Quote
  #2  
Old 08-15-2005, 11:20 AM
megri's Avatar
megri megri is offline
Administrator
 
Join Date: Mar 2004
Location: Chandigarh India
Posts: 818
megri is on a distinguished road
Send a message via MSN to megri Send a message via Yahoo to megri
Default

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).
Reply With Quote
  #3  
Old 09-15-2005, 03:11 PM
megri's Avatar
megri megri is offline
Administrator
 
Join Date: Mar 2004
Location: Chandigarh India
Posts: 818
megri is on a distinguished road
Send a message via MSN to megri Send a message via Yahoo to megri
Default

For changing to www from non-www version of your URL you can use


Quote:
[space]
RewriteEngine on (add that if it's not already there)
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.MyDomain\.com
RewriteRule (.*) http://www.MyDomain.com/$1 [R=301,L]
[space]
Reply With Quote
  #4  
Old 12-23-2005, 07:50 AM
megri's Avatar
megri megri is offline
Administrator
 
Join Date: Mar 2004
Location: Chandigarh India
Posts: 818
megri is on a distinguished road
Send a message via MSN to megri Send a message via Yahoo to megri
Default

Here is good article on it
http://www.somebits.com/weblog/tech/...rlResults.html
__________________
Mohnesh Kohli - Forum Administrator
India SEO Search Engine Optimization
Reply With Quote
  #5  
Old 12-23-2005, 08:45 AM
megri's Avatar
megri megri is offline
Administrator
 
Join Date: Mar 2004
Location: Chandigarh India
Posts: 818
megri is on a distinguished road
Send a message via MSN to megri Send a message via Yahoo to megri
Default

WebmasterWorld forum pageoneresults says about how 301 works for Google
  1. Quote:
    1. Implement 301 (old URI to new URI).
    2. Within 72-96 hours new URI indexed.
    3. Within 2 weeks old URI goes URI only with a Similar Pages link.
    4. Within that same 2 week period (it varies), the new URI gets fully indexed with page title and meta description (yes, in this case the meta description is being displayed as the snippet). The new pages begin to perform for the same phrases they did previously.
    5. Within 30 days, old URIs are usually purged but they do appear on occasion as a URI only listing. The new URIs don't seem to be affected by this shuffling of the old URIs in and out of the index.
You can read more here

http://www.webmasterworld.com/forum30/32516.htm


Last edited by megri : 12-23-2005 at 08:48 AM.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 09:21 AM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Megrisoft