Created
December 17, 2019 17:35
-
-
Save MaxLazar/714fd45d212f6190855972de4f96b755 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apache | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !^/system [NC] | |
RewriteCond %{QUERY_STRING} !ACT|URL [NC] | |
RewriteCond %{REQUEST_METHOD} !=POST [NC] | |
RewriteCond $1 !\.(css|js|gif|jpe?g|png) [NC] | |
RewriteCond %{DOCUMENT_ROOT}/static/default_site/static%{REQUEST_URI}/index\.php -f | |
RewriteRule ^ /static/default_site/static%{REQUEST_URI}/index\.php [L,QSA] | |
</IfModule> | |
NGINX | |
if ($request_method !~* GET) { | |
set $request_var nonget; | |
} | |
if ($args ~* (ACT|URI)) { | |
set $uri_var acturl; | |
} | |
if (-e $document_root/static/default_site/static/$request_uri$request_var$uri_var/index.php) { | |
rewrite ^(.*) /static/default_site/static/$request_uri/index.php last; | |
} | |
Apache | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !^/system [NC] | |
RewriteCond %{QUERY_STRING} !ACT|URL [NC] | |
RewriteCond %{REQUEST_METHOD} !=POST [NC] | |
RewriteCond $1 !\.(css|js|gif|jpe?g|png) [NC] | |
RewriteCond %{DOCUMENT_ROOT}/STATIC_PATH/SITE_NAME/static%{REQUEST_URI}/index\.php -f | |
RewriteRule ^ /STATIC_PATH/SITE_NAME/static%{REQUEST_URI}/index\.php [L,QSA] | |
</IfModule> | |
NGINX | |
if ($request_method !~* GET) { | |
set $request_var nonget; | |
} | |
if ($args ~* (ACT|URI)) { | |
set $uri_var acturl; | |
} | |
if (-e $document_root/STATIC_PATH/SITE_NAME/static/$request_uri$request_var$uri_var/index.php) { | |
rewrite ^(.*) /STATIC_PATH/SITE_NAME/static/$request_uri/index.php last; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment