301 Redirect plugin for wordpress on windows server

admin

Administrator
Staff member
I has a wordpress site on azure website, traditionally I has used <a href="https://wordpress.org/plugins/quick-pagepost-redirect-plugin/" rel="nofollow">Quick Redirect</a> 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.

<strong>MORE DETAILS:</strong>

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:

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