.htaccess surivival of the fittest - HELP

Discussion in 'Site & Server Administration' started by timallard, Feb 4, 2010.

  1. #1
    Hello,

    I am in the process of a website migration. I created a wordpress blog at this location:

    http://www.website.com/new-website

    I did this so I could keep the current site live while i build the blog.

    The time is here and i want to move that live at the root. I did that (copied) and modified teh htacces on the root level to remove "new-website" but it is not working properly.

    I think they are competing with one another causing error.

    I do not want to delete the "new-website" folder as i want to make sure i have my live backup if needed.

    How can i have a root level live wordpress and a folder level live wordpress both using permalinks?

    please help.


    .htaccess root level:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>




    .htaccess new-website level:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /new-website
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /new-website/index.php [L]
    </IfModule>


    Thanks!
     
    timallard, Feb 4, 2010 IP