Closed Thread Icon

Topic awaiting preservation: .htaccess errorDocument problem... (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=26506" title="Pages that link to Topic awaiting preservation: .htaccess errorDocument problem... (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: .htaccess errorDocument problem... <span class="small">(Page 1 of 1)</span>\

 
DaveFA
Bipolar (III) Inmate

From: USA
Insane since: Feb 2004

posted posted 08-22-2005 20:34

Hello again,

I'm updating the .htaccess file for one of the sites I host, and I noticed an odd error today, specifically with the ErrorDocument.

When I go to http://www.sfolweb.com/1 it correctly gives me an error. When I go to http://www.sfolweb.com/1.html it also correctly gives me an error. However, when I got to http://www.sfolweb.com/1.php, it gives me "No input file specified." instead of my custom error page.

Am I missing something in my .htaccess? Thanks.

code:
# Custom .htaccess for SFOLWeb.com
# Last updated: 08/16/2005

<Files .htaccess>
order allow,deny
deny from all
</Files>

# Error pages
ErrorDocument 404 /error/index.php

# Prevent bandwidth theft
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !sfolweb.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !sfolweb\.com [NC]
RewriteCond %{HTTP_REFERER} !sb254.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !sb254\.com [NC]
RewriteCond %{HTTP_REFERER} !google\. [NC] 
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
RewriteRule    \.(gif|jpe?g|png|psd)$ - [F,NC,L]



-----------------------------------
-Dave

Maker of stuff, user of things
-----------------------------------

JKMabry
Maniac (V) Inmate

From: raht cheah
Insane since: Aug 2000

posted posted 08-22-2005 22:36

Dreamhost's php-cgi prevents the custom 404, still no way around it

http://discussion.dreamhost.com/showflat.pl?Cat=&Board=forum_troubleshooting&Number=8772&page=&view=&sb=&o=&vc=1

DaveFA
Bipolar (III) Inmate

From: USA
Insane since: Feb 2004

posted posted 08-22-2005 23:04

Ahh, figures. Oh well. Thanks for letting me know.

-----------------------------------
-Dave

Maker of stuff, user of things
-----------------------------------

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 08-23-2005 05:27

Actually, someone did post a work around for that on the DH support site.

What I did was turn off the PHP as a CGI. I actually needed to do that for something else, but the added benefit was that error docs work. YMMV

« BackwardsOnwards »

Show Forum Drop Down Menu