Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google indexing my old site. How to change?


jdmsai

Recommended Posts

Posted

Hi guys, I used to run my website on www.mobile604.com/index.html. Now that my osc site is up and running, i want it to go to www.mobile604.com/index.php.

 

However, when I google 'Mobile604', it still links people to www.mobile604.com/index.html instead of index.php. How do I fix this or tell google to get rid of all my old links?

 

TIA

 

-Simon

Posted
Hi guys, I used to run my website on www.mobile604.com/index.html. Now that my osc site is up and running, i want it to go to www.mobile604.com/index.php.

 

However, when I google 'Mobile604', it still links people to www.mobile604.com/index.html instead of index.php. How do I fix this or tell google to get rid of all my old links?

 

TIA

 

-Simon

 

Something simple in .htaccess like the following will probably do it ..

RewriteEngine on
RewriteRule index\.html index.php [NC,R]

Posted

thanks that worked well =) but I was doing some research myself on google as well.. how do I make it so that it send a 301 permanent direct to google using this rewrites?

Posted
thanks that worked well =) but I was doing some research myself on google as well.. how do I make it so that it send a 301 permanent direct to google using this rewrites?

 

RewriteEngine on

RewriteRule index\.html index.php [NC,R=301]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...