Forums

Redirecting old BlogEngine.net Post Urls to new ones (1 post)

  1. nikrox
    Member
    Posted 1 year ago #

    Hi everyone

    I recently moved my blog from BlogEngine.net to WordPress. The blog in question runs on an IIS7 server

    I was wondering if there is a way for me to setup 301 redirects to a few post urls from their BlogEngine.net URLs to new WordPress urls?

    I tried using the rewrite section in the web.config (just as wordpress does) with no luck. Can you please help me create a rule for one URL? I can then copy it for the others

    The original url is /blog/post/2010/08/04/FREE-Red-Laser-App-for-iPhoneiPad!!.aspx

    I would like it redirected to

    http://britishpcrepairs.co.uk/blog/2010/iphone/iphone-apps/free-red-laser-app-for-iphoneipad/

    Here is the code for my current web.config file (generated by WP)

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    <system.webServer>
    <directoryBrowse enabled="false"/>
    <defaultDocument>
    <files>
    <clear/>
    <add value="Index.aspx"/>
    <add value="Default.htm"/>
    <add value="Default.asp"/>
    <add value="index.htm"/>
    <add value="index.html"/>
    <add value="iisstart.htm"/>
    <add value="default.aspx"/>
    <add value="index.php"/>
    </files>
    </defaultDocument>
    <rewrite>
    <rules>

    <rule name="wordpress" patternSyntax="Wildcard">
    <match url="*"/>
    <conditions>
    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
    </conditions>
    <action type="Rewrite" url="index.php"/>
    </rule>
    </rules>
    </rewrite>
    </system.webServer>
    </configuration>

Topic Closed

This topic has been closed to new replies.

About this Topic