Loading ...

301 redirect via web.config | CodeAsp.Net

301 redirect via web.config

 /5
0 (0votes)

If you want to add 301 redirects to your site you can do that via web.config. Here is the example:

    <location path="communifire/technology">
        <system.webServer>
            <httpRedirect enabled="true" destination="/product/technology" httpResponseStatus="Permanent" />
        </system.webServer>
    </location>

    <location path="communifire/overview">
        <system.webServer>
            <httpRedirect enabled="true" destination="/" httpResponseStatus="Permanent" />
        </system.webServer>
    </location>

    <location path="communifire/features">
        <system.webServer>
            <httpRedirect enabled="true" destination="/product/features" httpResponseStatus="Permanent" />
        </system.webServer>
    </location>

    <location path="communifire/benefits">
        <system.webServer>
            <httpRedirect enabled="true" destination="/solutions/team-collaboration-software" httpResponseStatus="Permanent" />
        </system.webServer>
    </location>

You can add those sections in <configuration> tag. Above path is the source url and destination is the target path.

Comments (no comments yet)

Top Posts