Jump to content

Internal server error 500 with new rule in .htaccess


Recommended Posts

I try to put a new rule in my .htaccess to redirect when some url appears, I put the following rule in the top of the .htaccess to preserve the content after it's regenerated

RewriteRule ^webservice/?(.*)$ %{ENV:REWRITEBASE}api/test.php [QSA,L]

For this I created a new /api directory under the root folder and inside a test.php with a

echo "Hello world"

, but I always get 500 Internal Server Error.

 

But if I change the directory to one of the defaults Prestashop, (e.g webservice) and create a new php file with a

echo "Hello World"

it's work fine.

 

I put all the permissions to the directory and nothing happens.

 

Thanks in advance

Link to comment
Share on other sites

×
×
  • Create New...