Jump to content

Problems with htaccess and simple rewriterule on PS

Recommended Posts

Posted (edited)

Hello there, I am experiences some difficult with a simple task I did several times (on projects not leveraging on PS).

I simply need to 302 redirect a url.

The rule is this: 

RewriteRule ^en/blog$ /it/blog [L,R=302]

Which means I need to redirect www.example.com/en/blog to www.example.com/it/blog.

I put inside the htaccess in the root of the project, below the line 

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

Inside the htaccess, above the line.. above... there is RewriteEngine on, so it should be ok to just paste my rule and it should work, afaik.

Well, the result is that the rule is totally ignored instead.

Any suggestions?

Thanks in advance.


edit: in case this could be an interesting detail: the url I am working on are friendly url of a module.

Edited by Masiorama (see edit history)

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More