httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eimantas \"EnC\" Vaičiūnas" <eiman...@lietuvoje.lt>
Subject [users@httpd] yet another mod_rewrite problem
Date Fri, 19 Mar 2004 11:56:39 GMT
Hello list.

The folowing are the files from my apache (problem description follows 
at the bottom):

main.rewrite.conf (included from vhosts.conf which is included from 
httpd.conf)
============================
RewriteEngine On
RewriteLog logs/main.rewrite.log
RewriteLogLevel 2
# Rewrite Rules!!!
RewriteCond %{REQUEST_URI} !^$ [OR]
RewriteCond %{REQUEST_URI} !^/(.+)\.(css|jpg|gif|png)$ [NC]
RewriteRule ^/(.+)/$ /$1\.php [C]
============================

Rewrite log:
============================
127.0.0.1 - - [19/Mar/2004:13:54:44 +0200] 
[dzhibutis.biz/sid#5de600][rid#5f8a30/initial] (2) init rewrite engine 
with requested uri /index/
127.0.0.1 - - [19/Mar/2004:13:54:44 +0200] 
[dzhibutis.biz/sid#5de600][rid#5f8a30/initial] (2) rewrite /index/ -> 
/index.php
127.0.0.1 - - [19/Mar/2004:13:54:44 +0200] 
[dzhibutis.biz/sid#5de600][rid#5f8a30/initial] (2) local path result: 
/index.php
127.0.0.1 - - [19/Mar/2004:13:54:44 +0200] 
[dzhibutis.biz/sid#5de600][rid#5f8a30/initial] (2) prefixed with 
document_root to D:/My WAMP/localhost/index.php
127.0.0.1 - - [19/Mar/2004:13:54:44 +0200] 
[dzhibutis.biz/sid#5de600][rid#5f8a30/initial] (1) go-ahead with D:/My 
WAMP/localhost/index.php [OK]
127.0.0.1 - - [19/Mar/2004:13:54:51 +0200] 
[dzhibutis.biz/sid#5de600][rid#5fca40/initial] (2) init rewrite engine 
with requested uri /index/main.css
127.0.0.1 - - [19/Mar/2004:13:54:51 +0200] 
[dzhibutis.biz/sid#5de600][rid#5fca40/initial] (1) pass through 
/index/main.css
127.0.0.1 - - [19/Mar/2004:13:54:52 +0200] 
[dzhibutis.biz/sid#5de600][rid#5fca40/initial] (2) init rewrite engine 
with requested uri /index/pics/logo_dzhib.jpg
127.0.0.1 - - [19/Mar/2004:13:54:52 +0200] 
[dzhibutis.biz/sid#5de600][rid#5fca40/initial] (1) pass through 
/index/pics/logo_dzhib.jpg
=================================

As you see when i rewrite /index/ to index.php all the other requested 
files are prepended with rewritten index.php (/index/)

Any help is very appreciated.

Thank you


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message