Need Help on Redirection

Discussion in 'Apache' started by Susie Cheap Link, May 22, 2008.

  1. #1
    I want all www.*.domain.com - all subdomains

    forwarded to *.domain.com

    is this possible?
     
    Susie Cheap Link, May 22, 2008 IP
  2. rakesh_kpn

    rakesh_kpn Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try....


    Options +FollowSymLinks

    RewriteEngine On

    RewriteCond %{HTTP_HOST} ^www\.(subdomain\.domain\.com)$ [NC]
    RewriteRule .* http://%1%{REQUEST_URI} [R=301,L]
     
    rakesh_kpn, May 22, 2008 IP