KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
my web application structure is: /var/www/myapp/ - www/ - index.php - css.php - .htaccess the virtual host is configured as: <VirtualHost *:80> ServerName www.example.org DocumentRoot /var/www/myapp/www DirectoryIndex index.php index.html <Directory /var/www/myapp/www> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> </VirtualHost> In /var/www/myapp/www/.htaccess there is: <IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteRule css css.php [L,NC] RewriteRule .* index.php </IfModule> Now, if I call www.example.org I'm correctly redirected to index.php, but if I call www.example.org/css I'm still redirected always to index.php. If I drop the line "RewriteRule .* index.php" and then call www.example.org/css, I'm correctly redirected to css.php. What's wrong? Thanks all very much ======== EDIT ========= 192.168.1.8 - - [14/Jul/2012:19:07:21 +0200] [www.example.org/sid#b747b6c0][rid#b7080058/initial] (3) [perdir /var/www/sviluppo/mattia_dev/example/www/] add path info postfix: /var/www/sviluppo/mattia_dev/example/www/DEV_2 -> /var/www/sviluppo/mattia_dev/example/www/DEV_2/css/example1/test.css 192.168.1.8 - - [14/Jul/2012:19:07:21 +0200] [www.example.org/sid#b747b6c0][rid#b7080058/initial] (3) [perdir /var/www/sviluppo/mattia_dev/example/www/] strip per-dir prefix: /var/www/sviluppo/mattia_dev/example/www/DEV_2/css/example1/test.css -> DEV_2/css/example1/test.css 192.168.1.8 - - [14/Jul/2012:19:07:21 +0200] [www.example.org/sid#b747b6c0][rid#b7080058/initial] (3) [perdir /var/www/sviluppo/mattia_dev/example/www/] applying pattern '^(DEV|TEST|PROD)\_[0-9]+\/(css|js|image|stati
Tags (comma-separated)
Save Edits
Cancel