Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

.htaccess Redirect or Rewrite


Guest

Recommended Posts

We need to point another store to a new URL.

 

We have searched the forum and Google for 2 days and hope someone can help us.

 

How can we change take out the last part of the UR, such as in http://www.example.com/example-product-p-1272.html?

 

We want to remove the "-p-1272" part. Or just all the way to the end by removing "-p-1272.html".

 

Note: the "-p-" is static and never changes but "1272" the number part is dynamic and changes from product to product.

 

So if a customer enters say http://www.example.com/another-example-product-p-1588.html'>http://www.example.com/another-example-product-p-1588.html they will be directed to http://www.example.com/another-example-product or http://www.example.com/another-example-product-p-1588.html'>http://www.example.com/another-example-product-p-1588.html (depending on how we set it up in .htaccess

 

Thank you in advance

Link to comment
Share on other sites

Randy,

 

You are more than likely using an SEO URL modification, check your admin area for display options for the URL. They vary depending on which SEO URL modification you are using.

 

 

 

Chris

Link to comment
Share on other sites

Randy,

 

You are more than likely using an SEO URL modification, check your admin area for display options for the URL. They vary depending on which SEO URL modification you are using.

 

 

 

Chris

 

Thanks for the reply. Actually we need to direct the name only of the product (WITHOUT the 4 digit model number at the end of the existing URL) in our new store to a new product with a new model number. But do not want to lose the existing Google indexes.

Link to comment
Share on other sites

Randy,

 

The product direction comes from the complete URL. If you want to remove the model number from the URL, then change your SEO URL options to remove it.

 

 

 

 

Chris

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...