Jump to content

URL rewrite for a specific product


Recommended Posts

I want to setup a rewrite rule that changes the URL for 1 specific product, I've done some searching and I've tried many things with no luck, can anyone offer a suggestion?

 

the default rewrite rules change this:

mydomainname.com/product.php?id_product=41

to this:

mydomainname.com/41-productname.html

 

I want to transform this specific product from this:

mydomainname.com/product.php?id_product=11

to this:

mydomainname.com/try-me/

 

Do you have to setup a RewriteCond to exclude it from the current product rewrite?

 

I tried this with no luck:

 

RewriteRule ^try-me/$ /product.php?id_product=11 [NC,L]

 

And do I have to change code in the Link class to accomodate this?

 

any suggestions would be appreciated.

Link to comment
Share on other sites

  • 2 months later...

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