Click here to Skip to main content
15,070,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We had one website created in html.It has has many html pages .

Now we have move this website to mvc application.

but issue is when user search something for our company in google it give result like...

but as we have move this mvc , the home.html page is no more.

therefor when user clicks on "" page not found error come.

Can someone have any idea how can we redirect to "" in mvc????

What I have tried:

We tried to do something using rounting but it not works for me.
Updated 28-Feb-16 0:06am

Use the url rewriting module to map your old urls to new ones

URL Rewrite : The Official Microsoft IIS Site[^]
[no name] 29-Feb-16 1:14am
Thanks you very much for reply.
That is exactly why you should not delete the references that application had to static pages. This page, "home.html" was a static web page in your website which is indexed on Google too. Deleting that page was a bad idea.

My recommendation is not to move further, instead have the page back. But instead of a full web page, write JavaScript redirect code and redirect the users to the next page. You may also have to chat with the bots to let search engines target the new home page.

      <title>My Web Page</title>
         // Move to the new page.
         window.location = "";

This would do the job. Anyways, my other recommendation is to talk to your SEO team before asking for a new architectural design from your development team. :-)
[no name] 29-Feb-16 1:14am
Thanks you very much for reply....I did the same... :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900