How to change page URLs to “www.site.com/page” instead of “example.com/blog/page” but keep post URLs as “example.com/blog/post”?

You just set the WordPress directory in your WP General Settings to your top-level URL (www.site.com/), then copy index.php to the root directory of your site and modify it to load content from your actual wp directory.

Step by step instructions are here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

I did this for my personal web site: http://dannythorpe.com. The WP files are actually located in a subdir of the web root (public_html), not the web root dir.

No URL rewriting is required!

Leave a Comment