mathCodingClub/restService/master/.htaccess - Htaccess File

mathCodingClub/restService/master/.htaccess

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_HOST} ^(.*).mathcodingclub.com$ [NC]
#RewriteCond %{REQUEST_URI} ^(.*)\(.*)$
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/%2/index.php [QSA,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_HOST} ^localhost$ [NC]
RewriteRule ^(.*)$ %{ENV:BASE}index.php [QSA,L]

On Github License

Files

Download PDF of Htaccess file
DOCUMENT_ROOT, ENV, HTTP_HOST, REQUEST_FILENAME, REQUEST_URI

Comments

Apache