Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^(www\.)?(.*)$ [NC]
- RewriteCond %{DOCUMENT_ROOT}/web/%2-www/ -d
- RewriteCond %{REQUEST_URI} !^/web/
- RewriteRule (.*) /web/%2-www/$1 [QSA,DPI]
- RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.(.*)$ [NC]
- RewriteCond %{DOCUMENT_ROOT}/web/%3-%2/ -d
- RewriteCond %{REQUEST_URI} !^/web/
- RewriteRule (.*) /web/%3-%2/$1 [QSA,DPI]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement