RE: Problems with .htaccess file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In your config are the RewriteCond and RewriteRule really on the same line
together or is that just the e-mail playing with it? I'm not sure that it
matters but I'd put them on separate lines if they are not already.

-----Original Message-----
From: Frank Gingras [mailto:francois.gingras@xxxxxxxxx] 
Sent: Thursday, November 13, 2008 2:10 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  Problems with .htaccess file

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@xxxxxx] 
> Sent: Thursday, November 13, 2008 1:59 PM
> To: users@xxxxxxxxxxxxxxxx
> Subject: RE:  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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>
> ---------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>   



---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux