Jump to content

Redirect 301 and Friendly URLs


Recommended Posts

I'm planning on moving my items from having the default category as home to the category they are in

this would change the friendly url from:

http://www.domain.com/X-product.html

to

http://www.domain.com/category/X-product.html

So I put a Redirect 301 rule in my .htaccess as follows
Redirect 301 /X-product.html http://www.domain.com/category/X-product.html

But that actually redirects as follows:

http://www.domain.com/category/X-product.html?id_product=X

Anyone knows why this happens, and how to stop it?

Thanks!

Link to comment
Share on other sites

Are you using the same domain name, ?

if so you do not need to have the domain name in the redirect

I have just upgraded from a seven year old oscommerce install and have included loads or redirects in my .htaccess file

example below

redirect 301 /-c-24.html /25-tritium-glow-rings
redirect 301 /blue-year-glow-sticks-tritium-keyrings-glowring-p-36.html /tritium-glow-rings/36-nite-tritium-glow-ring-blue.html
redirect 301 /glow-dark-plastic-whistles-p-143.html /glow-in-the-dark-whistles/143-12-glow-in-the-dark-plastic-whistles.html



but we do have tomerg3's duplicat url redirect installed on the domain

regards


chris

Link to comment
Share on other sites

Hi guys,

Looks like the paid module is the answer then!

Bartman, not seen relative paths in the second part url redirects work before, they normally seem to cause a 500 error, maybe my apache settings, or perhaps tomerg3's module.

thanks
Dave

EDIT: just to clarify, I'm not saying tomerg3's causes 500s!

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...