Link to home
Start Free TrialLog in
Avatar of Rynert
Rynert

asked on

How - Moving Wordpress from Apache Subdomain to IIS Folder

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 ?
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rynert
Rynert

ASKER

Thanks - and how would I turn every 'old' post into a permantent 301?
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.
Avatar of Rynert

ASKER

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

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