Hello,
I'm trying to change the blog url for a WordPress site. When we first installed WP, we placed it in the directory /blog/ and the rest of the site was in the root directory. On the Settings General page, both the WordPress URL and Site URL are the same (http://mywebsite.com/blog) however, the index.php in the site's root directory does contain the lines:
<?php
/* Short and sweet */
define('WP_USE_THEMES', false);
require('./blog/wp-blog-header.php');
?>
This was so that the front page of the site could display a summary of the most recent post, but use a different template.
Now, in addition to being able to use the template for the entire site, I'd like to use the Pretty Link link shortener for Twitter links, but this makes all of the "short" links rather long because it uses the additional directory /blog/ in every short link.
Based on the codex docs "Moving_WordPress", "Changing_The_Site_URL" and particularly "Giving_WordPress_Its_Own_Directory" it seemed like all I might have to do is remove the "blog" from the site address and update permalinks (there is already an .htaccess in the root level).
Well, WordPress doesn't give me an error but there are two problems... the original link that used to go to mywebsite.com/blog (which showed the original "blog" page of "Your Latest Posts") now throws an Error 404, and all the links to the posts are displayed as the front page of mywebsite.com (using mywebsite.com/index.php). The URL displayed in the browser is the old permalink structure minus the /blog/, so... mywebsite.com/2010/10/mypost. This is what I would expect, except that the post is not displayed.
If I change the permalink settings to include the word /blog/ the post links work, but the page links do not. And going to mywebsite.com/blog still gives an error.
Based on the docs, it seems like it's OK to do this, but I feel like I'm missing a step. Either that or you simply CAN'T change the URL's of the posts without getting into a lot of mod_rewrite?
I've also tried deleting the stuff that WP writes to .htaccess and updated permalinks again, but it doesn't help.
Any bit of help would be appreciated... I know there are a lot of posts by people with similar issues, but I could not find one that had the exact same problem I am.
Thanks,
Dave