Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    mv_
    mv_ is offline
    Member
    Join Date
    Jun 2006
    Posts
    27

    Default subdomain advice needed

    Hello,

    I have a subdomain test.domain.com which is placed in /public_html/test/ directory. This makes the subdomain accessible via http://test.domain.com and http://www.domain.com/test/

    I want to block the second url, so only test.domain.com is working. Any advice how in .htacces I can do this?

    Thank you.

    mv

  2. #2
    Member
    Join Date
    Apr 2007
    Posts
    5

    Default

    how did you assign the test.domain.com to /test folder?

  3. #3
    mv_
    mv_ is offline
    Member
    Join Date
    Jun 2006
    Posts
    27

    Default

    Quote Originally Posted by patoy View Post
    how did you assign the test.domain.com to /test folder?
    It is done automaticaly by default by cpanel

  4. #4
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,893
    cPanel/Enkompass Access Level

    Root Administrator

    Wink

    Click the Redirects link in your cPanel and have a peek.
    Last edited by Infopro; 05-02-2007 at 05:05 AM. Reason: wrong title
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  5. #5
    mv_
    mv_ is offline
    Member
    Join Date
    Jun 2006
    Posts
    27

    Default

    Quote Originally Posted by Infopro View Post
    Click the Redirects link in your cPanel and have a peek.
    Thank you dude. It partially solves my problem.

    When I go to www.domain.com/test/ it redirects to test.domain.com but when google or someone comes to www.domain.com/test/welcome.html that has been there for some time) the redirect(rewrite) does not work.

Similar Threads & Tags
Similar threads

  1. Advice Needed
    By markholland8 in forum Data Protection
    Replies: 4
    Last Post: 04-11-2009, 06:01 AM
  2. Addon?? Advice and help needed!
    By David Pearce in forum New User Questions
    Replies: 1
    Last Post: 02-23-2007, 10:52 PM
  3. cPanel 11 Tutorial - ADVICE NEEDED
    By kenzacm in forum New User Questions
    Replies: 5
    Last Post: 01-09-2007, 08:04 AM
  4. Logrotation advice needed
    By rs-freddo in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-16-2006, 07:42 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube