Hi there I need an small hand fixing rewrite rules for nginx,
Folder structure is like
dev.domain.com/public_html << contain the site
outside of /public_html we have apps & data folder
the following htaccess i need to convert are below
Folder structure is like
dev.domain.com/public_html << contain the site
outside of /public_html we have apps & data folder
the following htaccess i need to convert are below
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ public_html/ [L]
RewriteRule (.*) public_html/$1 [L]
</IfModule> <IfModule mod_rewrite.c>
Options -Multiviews
RewriteEngine On
RewriteBase /
RewriteRule ^$ public_html/ [L]
RewriteRule (.*) public_html/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
</IfModule>
Last edited by AllTheWay on 2022-05-11 23:20:29