Jump to content

.htaccess


Destramic

Recommended Posts

im having problem getting my .haccess file to function...for some reaon if i type 'http://www.domain.co.uk/spammmmmmm'  it wont see to load error.php?error=404 as i would like it to...same as DirectoryIndex if i set it to error.php it will just still load index.php as that is what it is set in apache config file..very confusing...can anyone help please?

[code]
ErrorDocument 400 /error.php?error=400
ErrorDocument 401 /error.php?error=401
ErrorDocument 402 /error.php?error=402
ErrorDocument 403 /error.php?error=403
ErrorDocument 404 /error.php?error=404

php_value magic_quotes_sybase off
php_value magic_quotes_gpc on
php_value magic_quotes_runtime on

DirectoryIndex index.php
[/code]

thanks destramic
Link to comment
https://forums.phpfreaks.com/topic/26259-htaccess/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.