Mod rewrite to redirect a sub-domain to a directory?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • megri
    Administrator
    • Mar 2004
    • 786

    Mod rewrite to redirect a sub-domain to a directory?

    Mod rewrite to redirect a sub-domain to a directory?

    abc.domain.com
    to
    www.domain.com/abc/

    RewriteCond %{HTTP_HOST} ^[www\.]*abc.domain-name.com [NC]
    RewriteCond %{REQUEST_URL} !^/abc/.*
    RewriteRule ^(.*) /abc/$1 [L]
    Parveen K - Forum Administrator
    SEO India - TalkingCity Forum Rules - Webmaster Forum
    Please Do Not Spam Our Forum
Working...
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎