Jump to content

[Solved] .htacces redirect url maker to catagory


Smiles

Recommended Posts

I try to get a short link redirect to a category and directly monitor the users.

 

I thought to do it on this way (.htacces):

Redirect 301 /cat1 https://website.nl/54-cat1?utm_source=magazine1&utm_medium=magazine&utm_campaign=cat1

 

Now i enter the page all looks good but when i click a product the url acts strange and i get the following:

 

https://website.nl/54-cat1?utm_source=magazine1&utm_medium=magazine&utm_campaign=cat1/product-from-website.html

 

And I get bounced back to the category page. Does someone has an idea how to solve this?

 

Gain is an easy redirect for the customer and a measurable one for me in analytics.

 

 

 

The issue was in the fact that prestashop removes the number in the link when going to the category, causing a loop.

Edited by Smiles (see edit history)
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...