Home > database >  url rewrite in asp.net core for wordpress in blog route
url rewrite in asp.net core for wordpress in blog route

Time:02-05

I implement shop with asp.net core and I want a blog route that fetches data from another server (WordPress)

for example, domain.com is on the IIS server with ASP.net core and domain.com/blog should be on Apache Server with WordPress

how can I do that?

CodePudding user response:

The IIS ARR reverse proxy could achieve this thing. You could set an IIS reverse proxy rule like below:

           <rule name="ReverseProxyInboundRule2" stopProcessing="true">
                <match url="blog/(.*)" />
                <action type="Rewrite" url="http://test.blog.com/{R:1}" />
            </rule>
  • Related