Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    166
    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:
    166
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice