Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have my web application named like I used this website over 3 years. Now I have moved my website in a virtual directory as its new path is

When I search my content on Google it displays my old website path which is now moved.

  • old path was:
  • new path is:

Please provide me a solution.

share|improve this question

migrated from Sep 11 '13 at 12:40

This question came from our site for professional and enthusiast programmers.

Google search optimization:… –  MelanciaUK Sep 5 '13 at 13:07

2 Answers 2

Since Google has index your old URL of the website then you have to do URL re-witting take catch old URL and redirect to your new URL.

Since I have hosted an application then all pages inside the like as been index to the Google but when I configured our web site open with then I have to write rule in the web.config:


        <rule name="Redirect to WWW" stopProcessing="true">
          <match url=".*" />
            <add input="{HTTP_HOST}" pattern="^$" />
          <action type="Redirect" url="{R:0}" redirectType="Permanent" >

share|improve this answer
can you explain your points... –  social Sep 5 '13 at 12:58
Please go through updated answer –  naval Sep 5 '13 at 13:07
i have used rewriting from… article but it has no url rules like your.. what can i do.. –  social Sep 5 '13 at 13:11
which iis version you are using –  naval Sep 5 '13 at 13:20
I have used iis 7 –  social Sep 5 '13 at 13:23

Try uploading the sitemap using Google Webmaster Tools. It will re-index all your URLs.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.