Htaccess File

AMMing/MyWebDemo/master/user/root/.htaccess

HTTP_HOST, REQUEST_FILENAME, REQUEST_URI
RewriteEngine On

RewriteCond %{HTTP_HOST} ^(www.)?client.amm.moe$
RewriteCond %{REQUEST_URI} !^/client/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /client/$1
RewriteCond %{HTTP_HOST} ^(www.)?client.amm.moe$
RewriteRule ^(/)?$ client/index.php [L]

RewriteCond %{HTTP_HOST} ^(www.)?web.amm.moe$
RewriteCond %{REQUEST_URI} !^/web/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /web/$1
RewriteCond %{HTTP_HOST} ^(www.)?web.amm.moe$
RewriteRule ^(/)?$ web/index.php [L]
Exit mobile version