Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

multiple htaccess to nginx URL rewrite

$
0
0
I am using aapanel. How can I set nginx url rewrite for multiple htaccess ?
In cpanel, In my script one htaccess is in public_html and another htaccess is in public_html/public/

This htaccess is in public_html

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .*$ public/$1 [L]
</IfModule>

and in public_html/public/

Options -Indexes
<Files *.css>
order allow,deny
allow from all
</Files>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]

Viewing all articles
Browse latest Browse all 4759

Trending Articles