Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Aug 2007
    Posts
    53

    Default Prevent .htaccess redirection from affecting addon domains

    Anyone know how to keep .htaccess redirection from affecting my addon domains.

    I have this line in the .htaccess for the main site:

    Redirect /index.html http://somesite.com/gallery/main.php

    The problem is that all addon domains get redirected as well?

  2. #2
    Member twhiting9275's Avatar
    Join Date
    Sep 2002
    Posts
    366
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Because all addons are placed in the public_html/addondomain folder (by default), yes, this is going to happen.

    How to stop this from happening? Move the addon domain to /home/user/addondomain, not /home/user/public_html/addondomain/ Or, you can just use the redirect in the gallery subdirectory itself.

    .htaccess controlls ALL directories under the main directory. This means that if you have something in public_html/.htaccess , it will, rightfully control public_html/directory1 , public_html/directory2 , public_html/directory3 and public_html/ itself.
    Linux Tech Networks: Reliable Server Administration and Monitoring since 2002

Similar Threads & Tags
Similar threads

  1. Addon domain redirection
    By ullalla in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-18-2007, 11:10 AM
  2. transparent redirection of new domains, without .htaccess?
    By SoftDux in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-05-2006, 01:21 AM
  3. Replies: 2
    Last Post: 05-23-2006, 04:27 AM
  4. htaccess redirection problems
    By horrighs in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-02-2003, 03:23 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube