Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Redirects

Author  Topic 

mpetanovitch
Yak Posting Veteran

52 Posts

Posted - 2005-08-22 : 13:26:33
We are in the process of converting cold fusion to ASP.NET. We have the need to keep cold fusion pages because of links, favorites, etc. We want to redirect them to the correct aspx page if a cfm page is requested. IE. Home.cfm would have a have redirect to home.aspx.

A simple Response.Redirect on a dummy home.cfm page would suffice however the business has said that this may hurt us in search engine optimatization.

Another solution is to create a customize http module which would intercept the request and forward to the correct page. This is a more intrusive approach as that every request to our site would have to go through this custom Http module.

My question is, can anybody else think of another approach?

Mike Petanovitch

AjarnMark
SQL Slashing Gunting Master

3246 Posts

Posted - 2005-08-22 : 18:02:09
If you are actually replacing the ColdFusion pages with ASP.NET, I wonder what makes the business people think that will hurt you in Search Engine Optimization. I'm no expert in SEO, but I would challenge them to explain their logic. It sounds more like an urban legend than real research.

However, you could do a couple of different things. One, is you could edit all of the CFM pages and insert header code with the appropriate META tags to redirect to the proper new page. Or you could write an intelligent custom 404 error page that looks up the page requested and redirects to the proper destination page. I would probably go with the custom 404 page because that can be handy for any other site reconstruction, and all you have to do is maintain the list of Old --> New pages.

---------------------------
EmeraldCityDomains.com
Go to Top of Page

MichaelP
Jedi Yak

2489 Posts

Posted - 2005-08-22 : 18:02:27
Edit: Sniped!

Maybe have a custom 404 error page (file not found) that redirects to home.aspx?
Or if you want to be really cool, you could parse the filename that is not found, and if it's a .cfm file, redirect to the correct .aspx file name. That way, you only run this code when people hit .cfm files.

Michael

<Yoda>Use the Search page you must. Find the answer you will. Cursors, path to the Dark Side they are. Avoid them, you must. Use Order By NewID() to get a random record you will.</Yoda>
Go to Top of Page
   

- Advertisement -