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