Apache mod_rewrite help with Wordpress

Posted by protohominid on Stack Overflow See other posts from Stack Overflow or by protohominid
Published on 2010-06-01T19:30:35Z Indexed on 2010/06/01 19:33 UTC
Read the original article Hit count: 145

I administer my wife's site, namelymarly.com. Up until last week, the root page of the blog was namelymarly.com/blog/.

Last week I changed it in the WP settings to be namelymarly.com.

WP created the new htaccess file, and I moved the index.php to the root directory (but left the WP folder where it was in the /blog/ directory), as instructed. Everything is working great except for one very important thing:

When you type 'namelymarly.com/blog/' into a browser now, you get a 404 error.

All other URLs, when they include the '/blog/somethinghere', will redirect properly to '/somethinghere.' It's only when there's nothing after '/blog/' that there's a problem.

I tried adding this rule but it breaks the site:

RewriteRule ^/blog(/|)$ /

Any suggestions/help?

© Stack Overflow or respective owner

Related posts about apache

Related posts about Wordpress