[pmwiki-users] Rewrite Rule Question

Tom celok at gmx.net
Mon Aug 14 11:21:38 CDT 2006


Hi again,

obviously this is solved by this:

RewriteEngine On
RewriteBase /
RewriteRule ^$              /pmwiki/pmwiki.php  [L]
RewriteRule ^cgi-bin/.*$    - [L]
RewriteRule ^([a-z].*)      /pmwiki/pmwiki.php?n=$1  [NC,QSA,L]


Again, don't ask me why.

Best Regards,
Tom


Tom schrieb am 14.08.2006 17:47 Uhr:
> Hi,
> 
> Patrick R. Michaud schrieb am 14.08.2006 17:34 Uhr:
>> Ouch.  You may need to eliminate more than just the cgi-bin/
>> directory from processing -- otherwise, how will browsers ever
>> access skin files and other items in pub/ ?
> 
> Actually everything else works like a charm (having the NotSoSimple Skin
> btw)
> 
>>     RewriteEngine On
>>     RewriteBase /
>>     RewriteCond ${REQUEST_URI}  !^cgi-bin
>>     RewriteRule ^$           /pmwiki/pmwiki.php  [L]
>>     RewriteRule ^([a-z].*) /pmwiki/pmwiki.php?n=$1  [NC,QSA,L]
>>
>> The RewriteCond line says to exclude any urls that begin with 
>> cgi-bin from being rewritten.  
> 
> While this reads very good, and after reading about RewriteCond, this
> should work, but it doesn't :(
> 
>> Hope this helps,
>>
>> Pm
> 
> More ideas?
> 
> Regards,
> Tom
> 
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
> 
> 




More information about the pmwiki-users mailing list