Jump to content

[SOLVER] not generate .htaccess


nest4

Recommended Posts

Hi Prestaman's,

 

I have several redirects in the .htaccess file and when to a user Creates a product, the new .htaccess is generated by default and delete all my redirects.

 

Is there any way to not generate the .htaccess whenever a product is created?

 

Thanks! :)

Edited by calabuig (see edit history)
Link to comment
Share on other sites

Hi Calabuig,

 

In .htaccess, there is a part that PrestaShop modifies, but also a part that stays intact:

 

Everything between:

 

# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
...
...
...
# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
 
 
Will be removed and then re-generated, so if you want to keep your own redirects or other code, place that code OUTside this block (say, all the way at the end of the file or so.)
 
 
Hope this helps,
pascal.
 
 
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...