Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

change mysite.com/page.php to mysite.com/page


longhorn1999

Recommended Posts

Posted

http://www.htaccesselite.com/remove-php-extensions-htaccess-novice-vt339.html

 

Hi everyone,

 

For Google PPC, I looking to shorten some URLs of landing pages by removing the .php extension from certain pages I've made.

 

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /about\.php\ HTTP/ [NC]

RewriteRule .+ http://www.binarysite.co.uk/about [R=301,QSA]

 

RewriteRule ^about/? /about.php [QSA,L]

 

This is one example I've seen to change one page at a time, but does anyone have any other ideas that are more effective? Does doing this

cause any other problems with osC?

Archived

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

×
×
  • Create New...