Mod rewrite need help with code

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
fastfingertips
Forum Contributor
Posts: 242
Joined: Sun Dec 28, 2003 1:40 am
Contact:

Mod rewrite need help with code

Post by fastfingertips »

The following code :

Code: Select all

RewriteEngine on
RewriteCond  %{REQUEST_URI}	 !\.(js|ico|gif|jpg|png|css)$
RewriteRule ^.*backend\/.*$ backend.php [L,S=1]
RewriteRule ^((?!backend).)*$ index.php [L]
php_value include_path ".;d:/proiecte/proiect/library"
php_value include_path ".;d:/proiecte/proiect"
RewriteEngine off
Is triggering the following error in Apache:

Code: Select all

[Tue Aug 15 10:34:38 2006] [error] [client 127.0.0.1] File does not exist: D:/proiecte/proiect/document_root/backend
For the url:

Code: Select all

http://localhost/proiect/document_root/backend/group
Why Apache is trying to get the backend when he should redirect to the backend.php?
Post Reply