Topic: Hostgator Overriding 404 Pages  (Read 477 times)

Pages: [1]   Go Down

#1: 13-Sep-2009, 10:21 PM

Improbus
Posts: 3

Hello.  I have two domains set up.  One for a wordpress blog, and one for a MODX site.  On both of these, the 404 pages created in each aren't showing up.  Instead an ad for hostgator is displayed. 

ERROR 404 - PAGE NOT FOUND

Oops! Looks like the page you're looking for was moved or never existed.
Make sure you typed the correct URL or followed a valid link.
This site is hosted by HostGator!
Build your website today for 1 cent! Coupon code: "404PAGE"
CLICK HERE TO GET STARTED


Sorry to be a complete newb here but does anyone know how to disable this? 

#2: 14-Sep-2009, 12:08 AM


Everett
Posts: 883

WWW
There may be something specific with HostGator... but... more likely, there is a file inside your document root named 404.html or similar.  The way MODx's .htaccess file works is that it forwards the page request to the MODx application ONLY IF the file doesn't exist.  If there's a file by that name in your doc root, then the web server will just serve up that file.

#3: 10-Nov-2009, 12:39 PM


Terry
Posts: 359

WWW
I'm having this problem as well (on Hostgator).  There is no 404.html in the root directory.  htaccess file is the default put in place during install (ver 1.0.0)

Not sure what else to look at.

#4: 10-Nov-2009, 01:14 PM


paulp
Posts: 367

WWW
You will have to hard code the pages you want as your 404 via your cpanel. They must run something to see it you have a 404.html and if not show a default.

http://support.hostgator.com/articles/cpanel/custom-error-pages
Its here at last:

www.campsites-in-wales.co.uk Campsite directory for campsites in Wales UK. Proudly powered my Modx

#5: 10-Nov-2009, 01:31 PM


Terry
Posts: 359

WWW
Paulp

Thank you.  This is interesting.  I will contact Hostgator about this..  I have another site with where the modx generated error page works just fine and I haven't hard coded an error page.  Hmmm.

#6: 10-Nov-2009, 01:37 PM


paulp
Posts: 367

WWW
Might be worth trying this:

Generate a 404 through your cpanel and add the following before the </head> replacing the url to your 404 page:

Code:
<meta http-equiv="refresh" content="0;URL=http://www.yoursite.com/404.html">
« Last Edit: 10-Nov-2009, 01:40 PM by paulp »
Its here at last:

www.campsites-in-wales.co.uk Campsite directory for campsites in Wales UK. Proudly powered my Modx

#7: 10-Nov-2009, 01:40 PM


Terry
Posts: 359

WWW
Sorry, I meant to say I have another site on Hostgator where the MODx error page works just fine.

#8: 10-Nov-2009, 01:41 PM


paulp
Posts: 367

WWW
Ahh right, never hosted with them to be honest but is there something in the settings of the hosting account ??

Edited post above
Its here at last:

www.campsites-in-wales.co.uk Campsite directory for campsites in Wales UK. Proudly powered my Modx

#9: 10-Nov-2009, 03:50 PM


Terry
Posts: 359

WWW
One more question before I get on the phone with hostgator.  Does it matter if the domain has yet been transfered to this server?  What about friendly URLs?

#10: 10-Nov-2009, 04:46 PM


paulp
Posts: 367

WWW
Quote
domain has yet been transfered

do you mean you haven't pointed the domain to the site, IE it's still a development site ?? then yeh that could make a difference
Its here at last:

www.campsites-in-wales.co.uk Campsite directory for campsites in Wales UK. Proudly powered my Modx

#11: 10-Nov-2009, 05:03 PM


Terry
Posts: 359

WWW
Yes, I spoke with the hostgator folks and they also told me that once the domain is transferred, this should start to work correctly.

I'll let you know!
Pages: [1]   Go Up
0 Members and 1 Guest are viewing this topic.