Help - Search - Members - Calendar
Full Version: 404 Errors On Dynamic Sites
Movable Type Community Forum > Using Movable Type > Additional Features
Milohoss


Howdy -

SO I now have dynamic publishing running, but it's caused my custom 404 page to cease working. Is it possible to have a custom 404 page when your site is dynamic? DO I need to add something to htacces?

THanks!
Milohoss
Wow! I figured it out...

I opened up /php/mt.php and searched for "404" Then I deleted the following line:


header("HTTP/1.1 404 Not found");

and replaced it with

header( 'Location: 404.php' ) ;
imabug
Changing the ErrorDocument directive in your .htaccess file to point to your 404 document is probably a better way of doing it.
Milohoss


What does that actually look like?

imabug
ErrorDocument

if you're using dynamic publishing, you should already have an .htaccess file in your blog directory with some ErrorDocument directives in it. Just modify them to point to your custom 404 document.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.