lundi 3 avril 2017

Redirect all requests to index.php in public directory

I need to redirect all requests to public/index.php. I tried to google it, but it doesn't work. My current .htaccess:

RewriteEngine on
#RewriteBase

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(css|js|icon|zip|rar|png|jpg|gif|pdf)$ public/index.php [L]

Web structure




Aucun commentaire:

Enregistrer un commentaire