Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-20-2003, 03:45 PM   PM User | #1
piz
Regular Coder

 
Join Date: Jul 2002
Location: Barcelona
Posts: 246
Thanks: 0
Thanked 0 Times in 0 Posts
piz is an unknown quantity at this point
htaccess and error documents

Hi,

I am trying to say my apache in a .htaccess file which document to open on a 404 error.

I put this in my htaccess:

ErrorDocument 404 /index.php

The Apache seems to read it, but he gives me an error:

The requested URL /dir/file was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

My Apache Version:
Apache/2.0.47 (Win32) PHP/4.3.1

Why don't he open the index.php and gives me this error?

Thx for any help.

Saludo
piz
piz is offline   Reply With Quote
Old 09-20-2003, 09:13 PM   PM User | #2
piz
Regular Coder

 
Join Date: Jul 2002
Location: Barcelona
Posts: 246
Thanks: 0
Thanked 0 Times in 0 Posts
piz is an unknown quantity at this point
Ok, thx - i managed it.
I didn't take the root of my server, only the path to the directory where i was working in, relative from the htaccess file.
It seems you can't write relative paths in the htaccess...

Greetz
piz
piz is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:18 PM.


Advertisement
Log in to turn off these ads.