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!

Masterdomain/Sub-Domain redirection

Discussion in 'General Discussion' started by deddy, Feb 16, 2005.

  1. deddy

    deddy Well-Known Member

    Oct 13, 2003
    Likes Received:
    Trophy Points:
    Masterdomain :
    Subdomain : is redirected to

    .htaccess entry:
    RedirectMatch temp ^/index.html$ is pointing to subdirectory "shop" within the masterdomain.

    Problem :

    Domain redirection of is working properly. is working properly. is not working properly because this address is also
    redirected to and got no chance to reach
    subdirectory "shop".

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^$ [OR]
    RewriteCond %{HTTP_HOST} ^$
    RewriteRule ^(.*)$$1 [R=301,L]

    is working but as

    Why isn't it possible to get also working.

    httpd.conf looks fine :
    DocumentRoot /home/username/public_html/shop
    CustomLog domlogs/ combined
    ScriptAlias /cgi-bin/ /home/username/public_html/shop/cgi-bin/

    DocumentRoot is not accepted as long as the .htaccess file within the public_html
    directory is redirecting the masterdomain :confused:

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