1

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>
xzegga
  • 3,051
  • 3
  • 25
  • 45
  • http://stackoverflow.com/questions/34743223/redirect-broken-pages-404-on-wordpress-redirection-301-not-working/34743782#34743782 – Jitendra Popat Feb 25 '16 at 05:30
  • What happens now when you try to redirect to that location? You are able to correctly redirect from azurewebsites -> mydomain correct? But not specifically that link? – Dave Voyles Feb 27 '16 at 19:14
  • @DaveVoyles I include an example of rule but nothing happen when enter to a match url – xzegga Mar 01 '16 at 03:11

1 Answers1

0

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.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Dave Voyles
  • 4,495
  • 7
  • 33
  • 44