Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 26542

Redirect from old URL to new URL

$
0
0

Hi

I recently change my website programming from "php" to "asp.net". My website is indexes in google by php extention for example:

www.mysite.com/page.php?56

now I want redirect google referees to new URL (without changing domain) for example:

mysite.com/HomePage.aspx

For doing this idea, I inserted below role in webcofig:

<rule name="Redirect to HomePage" stopProcessing="true"><match url="(.*)" /><conditions><add input="{URL}" pattern="^/$" negate="false" /></conditions><action type="Redirect" url="https://{HTTP_HOST}/default.aspx/{R:1}" redirectType="SeeOther" /></rule>

But host server can't load pages of my website. I would be appreciate everyone help me.


Viewing all articles
Browse latest Browse all 26542

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>