The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Subdomain-Redirect does not work

Discussion in 'General Discussion' started by strauberry, Oct 10, 2003.

  1. strauberry

    strauberry Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    The Subdomain-Redirect does not work :(

    This is the content of my htaccess-file:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^aaaaaaaa$ [OR]
    RewriteCond %{HTTP_HOST} ^www.aaaaaaaa$
    RewriteRule ^(.*)$ http://www.web.de/ [R=301,L]

    What the hell :)

    Thank you
    strauberry

    cPanel.net Support Ticket Number:
     
  2. mickeymouse

    mickeymouse Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    389
    Likes Received:
    0
    Trophy Points:
    16
    Dear strauberry,

    You can redirect using:

    RewriteCond %{HTTP_HOST} sub.my-domain.com
    RewriteCond %{REQUEST_URI} !sub/
    RewriteRule ^(.*)$ sub/$1 [L]

    Regards,,
     
Loading...

Share This Page