A subdomain question

Discussion in 'Site & Server Administration' started by Emperor, Apr 25, 2006.

  1. #1
    I have a blog using WP and a few weeks ago I decided to add a links directory to it on a sub domain. When someone wants to go straight do the links directory they can type "http://directory.mysite.com". Because I installed the directory in the folder Directory every time they surf around it will appear like this "http://directory.mysite.com/directory" on the address bar.

    Is there a way that I can make the directory part of the address disappear? I’m afraid that people visiting the site might get confused by the strange address. :confused:
     
    Emperor, Apr 25, 2006 IP
  2. theblight

    theblight Peon

    Messages:
    246
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you have the access to your site or the configuration might as well point the DocumentRoot of the subdomain directory.mysite.com upto the new directory you created and it will solve everything :cool:
     
    theblight, Apr 29, 2006 IP
  3. websys

    websys Active Member

    Messages:
    841
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    78
    #3
    umm i a little confused . Whats wrong in moving all the files for the Links installation to the root i.e
    http://directory.yoursite.com/
    Code (markup):
    ?
     
    websys, Apr 29, 2006 IP
  4. theblight

    theblight Peon

    Messages:
    246
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You dont have to move it, DocumentRoot is an apache configuration parameter. ;)
     
    theblight, Apr 29, 2006 IP
  5. Emperor

    Emperor Guest

    Messages:
    4,821
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for the replies but I’m afraid that I don’t quite follow. First how do I access to the DocumentRoot?


    Would imply deleting the Directories folder and moving all the files to the root directory? Wouldn’t this cause a lot of problems especially if I wanted to delete the directory latter on? :confused:
     
    Emperor, Apr 30, 2006 IP
  6. Mystique

    Mystique Well-Known Member

    Messages:
    2,579
    Likes Received:
    94
    Best Answers:
    2
    Trophy Points:
    195
    #6
    Are you hosted on Windows or LInux?

    It sounds to me like a Windows virtual directory issue.

    Generally, the root directory for a Windows based server is either www, wwwroot, or home

    For Linux servers the root directory may have any of these names:
    public_html, htdocs, httpdocs, or mainwebsite_html, and very rare to be named home

    depending on your website control panel and server configuration.
     
    Mystique, Apr 30, 2006 IP
  7. Emperor

    Emperor Guest

    Messages:
    4,821
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Emperor, Apr 30, 2006 IP
  8. Mystique

    Mystique Well-Known Member

    Messages:
    2,579
    Likes Received:
    94
    Best Answers:
    2
    Trophy Points:
    195
    #8
    Then should not be problem with the server, so go and check WP configuration under settings.

    When you install WP the installar read the actual relative path: http://www.mysite.com/directory

    so when you are calling it from your browser using the subdomain, it seems to be calling http://directory+ the setting on your configuration.

    From inside your WP admin area verify it is pointing simply to http://directory.mysite.com and not the original location (http://www.mysite.com/directory)
     
    Mystique, Apr 30, 2006 IP
  9. theblight

    theblight Peon

    Messages:
    246
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #9
    No deleting of some sort:
    it's an apache directives
    Some kind of an entry like this:

    <VirtualHost ip-address>
    ServerName directory.sitename.com
    DocumentRoot /home/sitename_root/directory
    </VirtualHost>
     
    theblight, May 1, 2006 IP