[pmwiki-users] Clean PmWikiURL and htaccess Question

Manish Ranade manish at thunderdata.com
Thu May 25 14:21:22 CDT 2006


Hi,

I am using following code in .htaccess for removing the word 'wiki' from the url:
(This .htaccess is under root directory)

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

It works fine. 

I have one more .htaccess file under:
www/dir1/dir2

code in that .htaccess is:

AuthMySQLEnable Off
AuthName "Administration"
AuthType Basic
AuthUserFile /home/.../www/dir1/dir2/.htpasswd
AuthGroupFile /dev/null
<Files ~ "(file1.ext|file2.ext|file3.ext)$">
require user username
</Files>

The problem is:

when I try to access the url:

http://www.mydomain.com/dir1/dir2 it redirects me to http://www.mydomain.com/wiki?n=Group.Name

Can you suggest any solution on this? I think I need some way of excluding dir1/dir2 from the rewrite rule to remove wiki.

Thanks,
Manish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060525/1eec8432/attachment.html 


More information about the pmwiki-users mailing list