Are you a Google Analytics enthusiast?
More SEO Content
404 Custom Error Pages & 301 Permanent Redirects
Posted 22 December 2004 - 09:48 AM
Our site is built with asp (homepage is www.mysite.com/default.asp and we are redoing the whole site and the new one will have breadcrumbs, which means that our directory is going to change and pages now need to be placed in the correct file as otherwise they show up incorrectly (or not at all) in the breadcrumbs.
I don't know much about our site development, but our developer doesn't seem to know how to create custom 404 error pages using .asp. Does anyone know of a good tutorial or can provide directions? I tried hunting online myself and really couldn't find anything that wasn't some type of software that we had to purchase.
Also, due to the moving of files and pages, we would like to add permanent redirects from the old pages to their new location ie /news/cases/case1/ to /applications/cases/case1/ or whatever it may be.
Thanks in advance and hope people are still around before the holidays (like me!)
Posted 22 December 2004 - 10:23 AM
The first is easier of course, the second is better IMO if you can do it.
On the second question, that shouldn't be too difficult. You'll just be setting up a 301 redirect from the old location to the new location. There is some info in the pinned thread on how to do that, depending upon what your server environment is.
Which begs the question, is this on a Windows/IIS server?
Posted 22 December 2004 - 11:07 AM
I think we need both - the 301 permanent for the new locations and we really just need to have the ability to create a custom 404 error page as we hold webinars, etc. and sometimes the registration pages get indexed and then aren't available after it is held, but we could use a 404 page to direct them to the recording...at least that was what I was thinking, but there might be a better, easier way.
Edited to add:
Right now, I can put in our menu.xml file: Menu name ="..." link="..." redirect="..." though I'm not sure if this is really correct or could end up in problems with the search engines...
Posted 22 December 2004 - 03:46 PM
1. Go to the web site's properties in IIS Manager.
2. Click the Custom Errors tab.
3. Scroll to HTTP Error 404.
4. Double-click it.
5. Select whether you want a File or a URL.
The File option will just serve a plain file to the user, with no server-side processing at all. The URL option will allow you to have a more powerful, dynamic 404 page, but you'll need to make sure that you programatically set a Response.Status of 404 inside that URL. Otherwise, the user actually sees a 302 to a Status 200, which tells their browser that the page that used to be there is now temporarily located at your 404 page -- not what you want.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users