Changing starting directory of domain

Discussion in 'Site & Server Administration' started by kelp, Nov 4, 2005.

  1. #1
    Hello,
    I currently have Textpattern installed on my host and I've been using that for a few months. I am testing out various CMS's, Joomla, Xoops, etc. Let's say I just installed Joomla on a folder located on www.mydomain.com/main and I want to make it so www.mydomain.com points to the "main" directory. Would that be easy or a pain in the ass?
     
    kelp, Nov 4, 2005 IP
  2. Johnburk

    Johnburk Peon

    Messages:
    777
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    put this in your index.html header

    <meta HTTP-EQUIV="REFRESH" content="0; url=www.mydomain.com/main">
    Code (markup):
    Replace www.mydomain.com/main with your own
     
    Johnburk, Nov 4, 2005 IP
  3. kelp

    kelp Peon

    Messages:
    306
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Would there be any future problems for using that redirect script? Will search engines penalize me for redirecting to that directory? How would search engines display my website in the in listings?

    Will it be like
    Title
    Description
    Site URL: www.mydomain.com/main/

    or will be like it

    Title
    Description
    Site URL: www.mydomain.com

    I guess it has to do with where the backlinks link to? I'm weary of using a redirect script because slow dial-up users will have to wait even longer. They will have to wait to load the redirect page and than wait again for the main page.
     
    kelp, Nov 4, 2005 IP
  4. Johnburk

    Johnburk Peon

    Messages:
    777
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I don't understand what the advantage is of using www.mydomain.com/main/ instead of www.mydomain.com?

    If you want to do it and keep searchengines happy use this in your .htaccess file

    
    RedirectPermanent /index.html http://www.mydomain.com/mian/index.html
    
    Code (markup):
     
    Johnburk, Nov 5, 2005 IP
  5. my3cents

    my3cents Peon

    Messages:
    332
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It can be done very easily if you have access your config files of the web server... Do you use Apache or IIS?
     
    my3cents, Nov 5, 2005 IP
  6. kelp

    kelp Peon

    Messages:
    306
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6

    I'm currently using some blog software for www.mydomain.com so I installed a CMS in a /main/ directory. Now I want to "be away" with the blog software and use the CMS instead, but it's installed in the /main/directory.
     
    kelp, Nov 5, 2005 IP