How to redirect wordpress homepage to subfolder

Discussion in 'HTML & Website Design' started by mrdeflation, Feb 9, 2010.

  1. #1
    I have a wordpress template that loads the home page

    www.thisismywebsite.com


    I want to 301 redirect that to:

    www.thisismywebsite.com/keywordsgohere


    and have all the files and folders that were sub directories under the root all fall in line under the new "root" --www.thisismywebsite.com/keywordsgohere

    problem is that if I just make another folder and move files, nothing is in the right place according to all the images/articles anymore.

    Is there a way to do this without manually editing the ENTIRE website and changing ALL the html links by hand?

    thanks
     
    mrdeflation, Feb 9, 2010 IP
  2. internetmarketingiq

    internetmarketingiq Well-Known Member

    Messages:
    3,552
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    165
    #2
    WordPress tends to break images when you move from root to subdomain/folder or back. To my knowledge other than re uploading them there is not a good fix. You could use PHPMyAdmin and change your URL's in your MySQL database.

    Did you check your config.php file for path changes?
     
    internetmarketingiq, Feb 10, 2010 IP
  3. Nexus6

    Nexus6 Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It's possible using an .htaccess file if your host supports that.
     
    Nexus6, Feb 10, 2010 IP
  4. mrdeflation

    mrdeflation Member

    Messages:
    368
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #4
    good ideas... thanks!


    wordpress just breaks hard coded images unfortunately
     
    mrdeflation, Feb 10, 2010 IP