Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options +FollowSymLinks
- RewriteEngine On
- # HTTPS (not working: ERR_TOO_MANY_REDIRECTS)
- RewriteCond %{HTTPS} off
- RewriteRule .? https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L]
- # Capture Global Request
- # RewriteCond %{THE_REQUEST} \S+\s+(\S*)
- # RewriteRule ^ - [E=REQ:%1]
- # Subdomain 1 (folder sql-admin)
- RewriteCond %{HTTP_HOST} ^sql-admin\.z3nth10n\.net$ [NC]
- RewriteCond %{REQUEST_URI} !^/phpmyadmin/.*$
- RewriteRule !^phpmyadmin/ /phpmyadmin%{REQUEST_URI} [L]
- # Subdomain 2 (folder api)
- RewriteCond %{HTTP_HOST} ^api\.z3nth10n\.net$ [NC]
- RewriteCond %{REQUEST_URI} !^/api/.*$
- RewriteRule !^api/ /api%{REQUEST_URI} [L]
- # Subdomain 3 (folder dev)
- RewriteCond %{HTTP_HOST} ^dev\.z3nth10n\.net$ [NC]
- RewriteCond %{REQUEST_URI} !^/dev/.*$
- RewriteRule !^dev/ /dev%{REQUEST_URI} [L]
- # Avoid trailing slash from Apache
- # Redirects a folder path to end in /
- # DirectorySlash off
- # RewriteCond %{REQUEST_FILENAME} -d
- # RewriteRule (?>.*)(?<!/) %{ENV:REQ}/ [L,DPI,R]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement