Advertisement
krot

MODX htaccess subdomain

Jan 21st, 2019
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. RewriteCond %{HTTP_HOST} ^(.*)\.site\.ru$ [NC]
  2. RewriteRule ^(.*)$ index.php?q=model/%1/$1 [L]
  3.  
  4. RewriteCond %{HTTP_HOST} ^(.*)\.site\.ru$ [NC]
  5. RewriteRule ^$ /home [L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement