|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Ziff Davis Enterprise Virtual Tradeshows: Hot Topics, Cutting Edge Technology, Real-time Networking among IT Professionals. Learn more
|
|
#1
|
|||
|
|||
|
301 redirect help
My website has a page rank of 4 and the index.php version has a page rank of 1. So to avoid any duplicate content penalty I have redirected non www and index.php to www.
I have put this in .htaccess, is it correct? Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^mysite.com [nc] rewriterule ^(.*)$ http://www.mysite.com/$1 [r=301,nc] RewriteCond %{THE_REQUEST} ^([^/]+/)*index\.php\ HTTP/ RewriteCond %{THE_REQUEST} ^.*/index\.php RewriteRule ^(([^/]+/)*)index.php$ http://www.mysite.com/$1 [R=301,L] |
|
#2
|
|||
|
|||
|
This is the only htaccess link you will ever need
awesome resource http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/ |
|
#3
|
|||
|
|||
|
Quote:
thank you, this is the information I am looking for too.
__________________
Chinese SEO Expert, My SEO Experiment Web Site Bluehost Review, This Is My First Web Hosting Affiliate Site |
![]() |
| Viewing: SEO Chat Forums > Other > HTML Coding > 301 redirect help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|