[pmwiki-users] Rewrite Rule Question
Tom
celok at gmx.net
Mon Aug 14 09:21:27 CDT 2006
Hi,
i do not really know how the rules work, but maybe someone can help me here.
I successfully got my urls down to: www.domain.com/Group/Name
Now i tried to eliminate one directory from being processed (cgi-bin):
RewriteEngine On
RewriteBase /
RewriteRule ^cgi-bin/(.*) /cgi-bin/$1 [L]
RewriteRule ^$ /pmwiki/pmwiki.php [L]
RewriteRule ^([a-z].*) /pmwiki/pmwiki.php?n=$1 [NC,QSA,L]
Comment:
- I know that the last rule is not original (i allow small letters for
links)
- The above is in .htaccess.
- I have no option to change httpd.conf or php.ini directly.
- The provider has installed Apache/1.3.26 (Linux/SuSE) PHP/4.4.2
Thoughts:
1. If i put the cgi-bin rule before the others, it would get processed
first.
2. [L] makes it stop, so that it wont be processed by the general rule
Does someone know where i am wrong, and how i can exclude one (or more)
directories from being processed here?
Thanks,
Tom
More information about the pmwiki-users
mailing list