Forums

blog in root / WP in own directory (5 posts)

  1. amberdesignz
    Member
    Posted 3 years ago #

    From the begining I setup WP in it's own directory http://www.justinsoule.com/wpress/
    I want the homepage to show in the root directory. I tried doing it from: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
    Since it was in it's own directory to start I just copied the index.php and .htaccess and did the change and changed the blog link on the settings tab from the admin.

    But I just got white pages. So I put it all back so it would work again.

    I thought from the host I could just have the domain pointed or forwarded to justinsoule.com/wpress- but that didn't work. Just Internal server errors or 404 errors.

    I did set the index.php as the homepage from Dreamweaver and I think that made it go to justinsoule.com/wpress- but only in Internet Explorer 7.0. I get white pages in Firefox and safari (because I deleted the index.html page)

    Please help- I can't make the site live yet...

  2. NC@WP
    Member
    Posted 3 years ago #

    You had to edit the .htaccess and index.php to reflect their relocation.

    In .htaccess, you had to change

    RewriteBase /wpress/

    to

    RewriteBase /

    and

    RewriteRule . /wpress/index.php [L]

    to

    RewriteRule . /index.php [L]

    In index.php, you had to change

    require('./wp-blog-header.php');

    to

    require('./wpress/wp-blog-header.php');

  3. moshu
    Member
    Posted 3 years ago #

    1. First of all - forget DW - don't use it when working with WordPress.

    2. A very common mistake: although everybody claims that they "copied" the index and htacess... in reality they moved it. Copy means just that: you have a copy in BOTH locations!

    3. You shouldn't have any index.html around, anywhere.

  4. amberdesignz
    Member
    Posted 3 years ago #

    NC- Thankyou-thankyou-thankyou!!!

    I didn't know about changing the .htaccess

  5. NC@WP
    Member
    Posted 3 years ago #

    amberdesignz,

    I didn't know about changing the .htaccess

    Technically, you don't need to; WordPress should create a new one once you change the Blog Address URL. Sometimes, though, when you do steps out of order, WordPress creates .htaccess, but then you overwrite it with the one you copied from a subdirectory. Another possibility is that WordPress doesn't have permissions to write to the root directory of the site, so you have to manually copy .htaccess over and edit it...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.