Jump to content

Renewing .htaccess


cleaner

Recommended Posts

Hi,

 

Friendly URL's stopped working suddenly. Disabling / Enabling from backoffice do not help.

My host advice me to re-generate .htaccess file. 

 

Friendly URL's are now disabled from backoffice. Next steps would be:

 

1. Download current .htaccess and save a copy

2. Deleting old .htaccess from server with FTP

3. Enable friendly URL's again from backoffice

 

I just would like to be shure i'm deleting current .htaccess file from correct position. Is it this one on the picture?

 

Thanks again,

-C

 

(Prestashop 1.5.5)

 

post-757113-0-21698500-1397534123_thumb.jpg

 

 

Link to comment
Share on other sites

Hi Guys and sorry for late reply due traveling...

 

Thanks for tips, but i wasn't able to solve this. Deleting old .htaccess and re-generating it did not help. Next step was my host changed permissions to 0750, but after that i got blank white screen on following error.

 

"Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."

 

CHMOD is now revert back to what it was and site is working again, but original problem still exist..

 

Any more suggestions?

Link to comment
Share on other sites

  • 2 weeks later...

Check to see what your rewrite code in .htaccess is. Mine in 1.5.3.1 is:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.yoursite.com$
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

Backup your file before making changes!!

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