How - Moving Wordpress from Apache Subdomain to IIS Folder

Rynert
Rynert used Ask the Experts™
on
I want to move my blog from ;

http://blog.MyDomain.com/ which is running on Apache 2.2

to

http://www.MyDmoain.com/blog/ running IIS6

Current permanlink structure is ; /%year%/%monthnum%/%day%/%postname%/

once moved I want it to retain the same structure.

So http://blog.MyDomain.com/2010/07/30/MyPost/ will become http://www.MyDomain.com/blog/2010/07/30/MyPost/

I have Helicon's ISAPI_Rewrite3 working in IIS so the permalink structure will work.

So, the questions are :

1. What is the process for moving the Wordpress site, and
2. What do I need to do to ensure that all OLD URLs will Permanent 301 redirect to NEW URLs ?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Fixer of Problems
Most Valuable Expert 2014
Commented:
The files can be just copied.  The database is the big problem.  After dumping the database from the old MySQL server, you must change several items in the 'wp_options' table to point to the new site and every row in 'wp_posts' because the site URL is stored in the 'guid' field of every post.  Then upload the dump to the new MySQL server.

Author

Commented:
Thanks - and how would I turn every 'old' post into a permantent 301?
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
Good question.  First you would have to have a list of all of the old posts I guess.  Then you would have to create a redirect for each one.  Maybe there is a way to do a simple 'rewrite' to cover them all but I'm not good at that.

Author

Commented:
Still looking for an answer to the second part - how to bulk create 301's for existing pages (without doing them one by one)
a nice web.config redirection..
My example works in my case.. but Windows ways are misterious
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
 <system.webServer>
  <rewrite>
   <rules>
  
    <rule name="Redirect to nl WWW" stopProcessing="true">
      <match url=".*" />
      <conditions logicalGrouping="MatchAny">
     <add input="{HTTP_HOST}" pattern="^blog.MyDomain.com$" />
      </conditions>
      <action type="Redirect" url="http://www.MyDmoain.com/blog/{R:0}" redirectType="Permanent" />
    </rule>
	
   </rules>
  </rewrite>
 </system.webServer>
</configuration>

Open in new window

Jason C. LevineDon't talk to me.

Commented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial