Take the 2-minute tour ×
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 www.myweb.com. I used this website over 3 years. Now I have moved my website www.myweb.com in a virtual directory as its new path is www.myweb.com/myweb.

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

  • old path was: www.myweb.com/vision/myvision
  • new path is: www.myweb.com/Myweb/vision/myvision

Please provide me a solution.

share|improve this question

migrated from stackoverflow.com Sep 11 '13 at 12:40

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

    
Google search optimization: google.co.uk/… –  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 abc.com then all pages inside the abc.com like abc.com/index.html as been index to the Google but when I configured our web site open with www.abc.com then I have to write rule in the web.config:

<rewrite>
      <rules>


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


      </rules>
    </rewrite> 
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 simple-talk.com/dotnet/asp.net/… 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

 
discard

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.