301 Redirect plugin for wordpress on windows server

619 views Asked by At

I has a wordpress site on azure website, traditionally I has used Quick Redirect Plugin to redirect some pages to new pages, but this plugin not work on windows cuz is using web.config file instead .htaccess

There are any way to generate 301 redirects for certain page from wordpress when is hosted in windows server, I has searched some plugin to do this but not finded any.

MORE DETAILS:

Azure websites use subdomain for azurewebsites.net like myblog.azurewebsites.net, I am configure website url with other masking domain name and work well, but, I want to that when user browse myblog.azurewebsites.net/category/link redirect to www.mydomain.com/blog/category/link but with 301 redirect in web.config. I am traying several ways, with location and url rewrite but nothing work.

Example of rules used:

<rule name="CanonicalHostNameRule1" stopProcessing="true">
    <match url="(.*)" />
    <conditions logicalGrouping="MatchAny">
        <add input="{HTTP_HOST}" pattern="subdomain\.azurewebsites\.net/([_0-9a-z-/]+)" />
    </conditions>
    <action type="Redirect" url="https://www.example.com/{R:1}" />
</rule>
1

There are 1 answers

4
Dave Voyles On

Are you hosting your website with Project Nami?

Your wordpress site should still be using .htaccess, although I may be mistaken.

For redirection, I use Page Links To.