Jump to content

Redirect 301 in .htaccess - Why is URL rewritten?


Recommended Posts

Hello,

 

I found a wrong URL in my site. Just suppose I have a page about CARS, with this URL:

 

www . mysite . com /8-vehicles

 

It would be more obvious to have a URL like this:

 

www . mysite . com /8-cars

 

I then corrected the URL and wrote this redirect in .htaccess (Prestashop 1.2.5):

 

redirect 301 /8-vehicles http://www . mysite .com/8-cars

 
When you click in Google the old URL ( /8-vehicles ) you are redirected to the right page but the URL in the browser has changed. Instead of being
 
www . mysite . com /8-cars ... it has been changed into:
 
www . mysite . com /8-cars?id_category=8
 
I cannot find a way to remove ?id_category=8. Anyone has an idea?
 
Thank you everybody.
Edited by Number Nine (see edit history)
Link to comment
Share on other sites

  • 7 months later...

 

www . mysite . com /8-vehicles

 

It would be more obvious to have a URL like this:

 

www . mysite . com /8-cars

BO => Catalog => Categories.

Choose ID 8 of categories. Find Friendly URL and change from vehicles to cars

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...