Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

.htaccess and 404

23 views
Skip to first unread message

Jan Nordgreen

unread,
Feb 18, 2009, 9:07:22 PM2/18/09
to .htaccess, jannor...@gmail.com
This is my .htaccess file at /public_html/mygis:

Options +Indexes
Options +FollowSymlinks

RewriteEngine on
RewriteRule ^(.*).html$ index.php?page=$1 [L]
AuthType Basic
AuthName "mygis"
AuthUserFile "/home/easyques/.htpasswds/public_html/mygis/passwd"
require valid-user

ErrorDocument 404 /mygis/404.php

---

The problem is that 404.php never gets called even for non-existing
urls.

Urls that ends in html I catch in my index.php, but those that ends in
htm, php or has no ending at all just gives the browser's 404 page.



Regards,

Jan Nordgreen
Reply all
Reply to author
Forward
0 new messages