homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
Home / Forums Index / Code, Content, and Presentation / Blogging SEO Blog Administration
Forum Library, Charter, Moderator: open

Blogging SEO Blog Administration Forum

Moving old wordpress blogs to new site on same server?

Msg#: 4612180 posted 2:24 am on Sep 24, 2013 (gmt 0)

So, I had a Wordpress blog for years setup on a subdomain.


One of the articles for instance was blog.mysite.com/article1/.

The root of the server hosts a CS-Cart shopping cart (PHP). I am trying to eliminate the blog. What I did was create an article in the shopping cart software (where the root is) called "article 1", so mysite.com/article1.html (a new page) exists.

I'm trying to make it so when people go to: blog.mysite.com/article1/, it sends them to mysite.com/article1.html

This is what I have in htacess fie located in the "blog" folder (which is what the subdomain points to):

RewriteRule ^article1/$ /article1.html/? [R=301,NE,NC,L]

It works. I mean, it forwards anybody trying to access blog.mysite.com/article1/ to mysite.com/article1.html. The problem is, if I go into Wordpress and delete "article1", I get a 404 error. The point of moving these articles is to eventually eliminate the blog.

Shouldn't it forward, whether or not the actual page exists on the subdomain? I thought basically says if any requests for /article1 are made... send to mysite.com/article1.html.

Has anybody changed their blog to another type of software and had to move content like this?



WebmasterWorld Administrator phranque us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4612180 posted 7:07 am on Sep 24, 2013 (gmt 0)

actually your RewriteRule says to redirect to /article1.html/ on the current hostname, so i would expect it to redirect to http://blog.example.com/article1.html/ rather than http://example.com/article1.html

i would try something more like this:
RewriteRule ^article1/$ http://example.com/article1.html? [R=301,L]
you don't need the NE flag here and you don't want the NC flag.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Blogging SEO Blog Administration
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved