Jump to content

modify slug, maybe with RewriteRule? - htaccess


Recommended Posts

Hi, when you're in the page of update an address, the URL is something like:

 

address?id_address = 13

 

I would rewrite this slug, so it is, for example:

 

address/13/

 

I'm trying to do through .htaccess as well:

 

RewriteRule ^address/([0-9] +)/?$ address?id_address=$1 [NC, L]

 

But does nothing ... I also tried, in the backend, to save settings: Preferences > + SEO URLs... but nothing. ( I thought that maybe changes were not being attended )

 

Note that the line above, I'm adding it after line:

 

End ~~ ~~ # Do not remove this comment, Automatically Prestashop will keep the code outside this comment When .htaccess will be generated again

 

In order to prestashop keeps my changes, but that I told, it does not work ...

 

Could you help me, please?

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