For a very long time I served my weblog from http://www.murrayc.com/weblog/, with the wordpress set up in /house/murrayc/murrayc.com/weblog/. Now I’ve moved it to http://www.murrayc.com/, with out transferring the wordpress set up on the filesystem.
I did that by:
-
Altering the “Web site Deal with (URL)”, in Settings->Common, to http://www.murrayc.com. I saved the “WordPress Deal with (URL)” as http://www.murrayc.com/weblog
-
Including a RedirectRule in my top-level .htaccess at /house/murrayc/murrayc.com/, in order that, as an example, permalink/one thing might be used as a substitute of weblog/permalink/one thing. The older weblog/permalinks nonetheless appear to work too.
Nevertheless, some outdated hyperlinks should not working.
http://www.murrayc.com/weblog/ takes you to a web page that occurs to say blogs, presumably through WordPress’s try to guess what you need. Likewise, http://www.murrayc.com/weblog/feed takes you to the feedback feed for one outdated weblog publish.
With the foundations added by WordPress (after altering the “Web site Deal with URL”, I believe), that is my .htaccess file:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/temp
RewriteRule ^(.*)$ weblog/$1 [L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I am utilizing WordPress 3.5.1, the most recent launch, through Dreamhost’s 1-click set up, which updates routinely.
This appears like a bug in WordPress. Perhaps it is misinterpreting URLs that it will get in some unspecified time in the future that include weblog/weblog.