Help request for Web Site Transfer to subfolder

Discussion in 'Site & Server Administration' started by blue_angel, Dec 11, 2006.

  1. #1
    I have a site at www.mysite.com and I want to move into a subfolder and replace all content with new contents.

    All thats pages which had spidered or if someone try to reach my page (if had kept link) is any way to redirect TO NEW DIRECTORY www.mysite.com/dir ?
     
    blue_angel, Dec 11, 2006 IP
  2. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #2
    I am NOT sure to understand your full intentions,
    so let me ask more questions

    1.
    after moving all into subfolder
    do you still plan files in current folder or will all be in subfolder ?

    2.
    what server? apache or ?
    if apache - then look into apache config
    depending on distribution it might be:
    httpd.conf
    or
    default_server.conf
    usually in
    /etc/apache2/

    see folder aliases and look how you can do your folder/subfolder on that level of config rather than with redirects

    remember to reload of restart apache when doing changes in config - see commands

    rcapache2 configtest
    or
    rcapache2 extreme-configtest
    and
    rcapache2 reload
    or
    rcapache2 restart
     
    hans, Dec 13, 2006 IP
  3. blue_angel

    blue_angel Well-Known Member

    Messages:
    1,174
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    130
    #3
    Thanks a lot hans for your reply.

    It's apache and I want to replace all contents off www folder with new content and old to transfer to one subfolder of main www folder.
    Also I try to find a way when a page try to reached then automaticaly goes to new location.
     
    blue_angel, Dec 13, 2006 IP