Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Lost PR with format switch

.asp to .php switch, PR went to 0?

         

Hubie

10:42 am on May 16, 2006 (gmt 0)

10+ Year Member



I'm switching from .asp to .php format. (going from www.domain.com/index.asp to www.domain.com/index.php).

How can I ensure my page rank will remain? After I went to the new format my PR went to 0. When I type in the exact URL (domain.com) into my browser, I see the PR5 for a split second and then it goes to my /index.php page (and back to zero PR).

Any advice?

Hubes

tedster

4:15 am on May 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When a page has a different extension, then it is a different url and starts at zero, no matter what the content.

Can you just have the precise domain resolve without redirecting to index.php?

MLHmptn

4:48 am on May 17, 2006 (gmt 0)

10+ Year Member



Put the following in your .htaccess

RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule ^(.*)$ [domain.com...] [R=permanent,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ [domain.com...] [R=301,L]

minnapple

4:50 am on May 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do a page by page 301 via .htacces.
It will not change the pr in the toolbar until the next update, but it should shorten the time that you lose positioning.