Forum Moderators: phranque
Options -Indexes
AddDefaultCharset utf-8
RewriteEngine on
RewriteRule \.(js¦css)$ /home/squatho5/public_html/assetMerger.php?path=%{SCRIPT_FILENAME} [L]
I want it to affect all child directories (site directories) so a site here "/home/squatho5/public_html/mostplays.com/" would have the above rule apply (I use "RewriteOptions inherit").
I expect this to resolve to the absolute path as it starts with a "/", but I get an error like this:
[Mon Apr 7 09:13:07 2008] [error] [client 90.231.35.156] File does not exist: /home/squatho5/public_html/mostplays.com[4]/home/squatho5/public_html/assetMerger.php[/4]
Can anyone help?
Also, be aware that code in .htaccess cannot "reach" directories above the DocumentRoot. This is required for security. If you need to reach above DocumentRoot, then you'll have to put the code into httpd.conf at the server config level.
Jim
Jim