<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am using following code in .htaccess for removing
the word 'wiki' from the url:</FONT></DIV>
<DIV><FONT face=Arial size=2>(This .htaccess is under root
directory)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>RewriteEngine On</FONT></DIV>
<DIV><FONT face=Arial size=2>RewriteBase /</FONT></DIV>
<DIV><FONT face=Arial size=2>RewriteRule ^([^/a-z].*)
wiki/pmwiki/pmwiki.php?n=$1 [QSA,L]</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>It works fine. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have one more .htaccess file under:</FONT></DIV>
<DIV><FONT face=Arial size=2>www/dir1/dir2</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>code in that .htaccess is:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>AuthMySQLEnable Off<BR>AuthName
"Administration"<BR>AuthType Basic<BR>AuthUserFile
/home/.../www/dir1/dir2/.htpasswd<BR>AuthGroupFile /dev/null<BR><Files ~
"(file1.ext|file2.ext|file3.ext)$"><BR>require user
username<BR></Files><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>The problem is:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>when I try to access the url:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.mydomain.com/dir1/dir2">http://www.mydomain.com/dir1/dir2</A>
it redirects me to <A
href="http://www.mydomain.com/wiki?n=Group.Name">http://www.mydomain.com/wiki?n=Group.Name</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can you suggest any solution on this? I think I
need some way of excluding dir1/dir2 from the rewrite rule to remove
wiki.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>Thanks,</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2>Manish</FONT></DIV></FONT></BODY></HTML>