Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support .htaccess/404 Problem
Yuuri
Posted on 25 Jul 2009, 00:19:42

Access: Member
Total Posts: 13
Joined: 2009-07-03

I've had this problem for a while. I just forgot to post it. I'm using friendly urls right now and I had to edit the .htaccess so it would include my layout but it works. The only problem is that instead of a 404 page it redirects to the index. Here's my coding

Code:
ErrorDocument 404 /404.php

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /index.php [L]

Sorry to be a bother.
#695
Chris
Posted on 25 Jul 2009, 14:36:16

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

That's how the friendly URLs are designed to work, when you enter

http://domain.com/test/0/1/asdsadas.php

The server recognizes this isn't a real file, reads the .htaccess to decide what to do, .htaccess is telling it that if a file doesn't exist, send them to index.php
#697
Yuuri
Posted on 26 Jul 2009, 02:08:39

Access: Member
Total Posts: 13
Joined: 2009-07-03

Okay, thanks then.
#698
Network-13.com © 2013