New Site Migration to MOJO (redirect all htm, html, asp requests from search results)

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
5/29/2012 10:22:18 AM
Gravatar
Total Posts 199

New Site Migration to MOJO (redirect all htm, html, asp requests from search results)

I have a site that was fully migrated from a basic html site into mojo.  Google has indexed all the old pages and they still show up in google results, but the mojo error pages will not pick up the bad request.

I have registered the mojo sitemap with google and bing, but there are too many URLs to simply add in a manual redirects.

Is there an automated way to redirect all requests to be handled by mojo error pages.

thanks in advance

Mike

5/29/2012 1:10:17 PM
Gravatar
Total Posts 58
"Digg-in yourself to achieve excellence!" Follow #GPsays

Re: New Site Migration to MOJO (redirect all htm, html, asp requests from search results)

Hi Digitaliway,

As i understand that Google has already crawled your URL's as ".html" and you wanted to replace it with the newer URL's with teh extension ".aspx" or an extension-less url,  it is better that you get over the Google Web Master Tools Dashboard and under the "Optimization" sub-menu on your left-side and navigate directly to "Remove URLs". By this way, you are guiding google to exclude the unwanted URLs and make your website get indexed with the right ones.

Check out this picture to have a better idea.

Thanks,

Guruprasad.

5/29/2012 5:48:06 PM
Gravatar
Total Posts 199

Re: New Site Migration to MOJO (redirect all htm, html, asp requests from search results)

thank you for the help.  I guess I was hoping for more of an automated process as I have over 75 urls and that google control panel is one by one removal.

I thought that a setting in the web.config might allow me to catch these bad requests so at least the user sees something other than a IIS error untill the google index catches up.

any other ideas??

 

5/29/2012 6:08:15 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: New Site Migration to MOJO (redirect all htm, html, asp requests from search results)

I'd recommend making 301 redirects for the URLs, if at all possible. That way, anyone with bookmarks to your old site will get redirected to appropriate content rather than receiving an error. Google will also see these 301 redirects and begin offering the new links, while keeping whatever existing search engine placement you'd generated with your previous site.

If you really want to go the 404 route, we were able to force any 404 errors across all of our sites to use the mojoPortal 404 page by enabling the commented-out httpErrors section of web.config. It works for us on IIS 7.5 (Windows Server 2008 R2), but might not work in all versions of IIS, so you should test it first if possible before deploying it.

Jamie

 

You must sign in to post in the forums. This thread is closed to new posts.