httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Gingras <francois.ging...@gmail.com>
Subject Re: [users@httpd] Problems with .htaccess file
Date Thu, 13 Nov 2008 20:09:50 GMT
Actually, a leading / in a condition will work just fine in the htaccess 
/ directory / location context. You need to remove it from a 
RewriteRule, if present.

Frank.

Hollie Hollis wrote:
> Because this is in a .htaccess file rather than in the main apache
> configuration file you need to remove the leading slash from your rule since
> it's looks at the rule from within the directory in which the .htaccess file
> is located.
>
> RewriteCond %{REQUEST_URI} !^index\.php$ RewriteRule
> !\.(js|ico|gif|jpg|png|css)$ index.php
>
> -----Original Message-----
> From: Reynier Perez Mira [mailto:rperezm@uci.cu] 
> Sent: Thursday, November 13, 2008 1:59 PM
> To: users@httpd.apache.org
> Subject: RE: [users@httpd] Problems with .htaccess file
>
>   
>> You will have to add the RewriteLogLevel and RewriteLog directives (they
>> do not appear in a default apache config). They can be set within the
>> global apache config or the VirtualHost directive. The purpose of the
>> logs is not to eliminate the error, but to try to see how the URLs are
>> being rewritten. Add the directives, try to access the page, then look
>> at the log file (specified by RewriteLog) to see exactly how apache is
>> trying to rewrite it.
>>     
>
> Ok, because the result of the command: > cat /var/log/apache2/bacula-rw.log
> is extremely long I write them in pastebin.com. This is the URL:
> http://pastebin.com/m3f10dfde 
>
> What's wrong then? I did not understand nothing
> Regards,
> Ing. Reynier Pérez Mira
> Dirección Técnica IP 
>
> ---------------------------------------------------------------------
> 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
>
>
> ---------------------------------------------------------------------
> 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
>
>   



---------------------------------------------------------------------
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