<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Tahoma","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Tahoma","sans-serif";
        color:windowtext;}
span.gmailquote
        {mso-style-name:gmail_quote;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span class=gmailquote><span style='color:#215868'>&lt;Snip&gt;</span></span><br>
Following the directions in the clean URL cookbook I set up my .htaccess<br>
file in /website as follows:<br>
<br>
# Use mod_rewrite to enable &quot;Clean URLs&quot; for a PmWiki installation.<br>
RewriteEngine On <br>
# The rewrite base will be the document root.<br>
RewriteBase /website<br>
# Send requests without parameters to pmwiki.php.<br>
RewriteRule ^$&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/singles/pmwiki.php&nbsp;&nbsp;[L]<br>
# Send requests for index.php to pmwiki.php .<br>
RewriteRule ^index\.php$ /singles/pmwiki.php&nbsp;&nbsp;[L]<br>
# Don't rewrite requests for any files, directories, or symbolic<br>
# links (shortcuts) that exist on the filesystem.<br>
# RewriteCond %{REQUEST_FILENAME} !-f<br>
# RewriteCond %{REQUEST_FILENAME} !-d<br>
# RewriteCond %{REQUEST_FILENAME} !-l # Send requests to pmwiki.php,<br>
appending the query string part.<br>
RewriteRule ^([A-Z0-9\xa0-\xff].*)$ /singles/pmwiki.php?n=$1&nbsp;&nbsp;[QSA,L]<br>
<br>
I set up my /website/singles/local/config.php file as follows:<br>
<br>
&lt;?php if (!defined('PmWiki')) exit();<br>
## Use &quot;Clean URLs&quot;.<br>
$EnablePathInfo = 1;<br>
$ScriptUrl = &quot;<a href="http://localhost"> http://localhost</a>&quot;;<br>
## more configuration settings...<br>
<br>
<span style='color:#215868'>&lt;snip&gt;</span><span style='font-size:12.0pt;
font-family:"Times New Roman","serif";color:#215868'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:1.0in'>I believe you want the RewriteBase
to be the root as served rather than the root as stored. Try &quot;RewriteBase
/&quot; instead.<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.0in'>Note, the should also allow &quot;<a
href="http://localhost"> http://localhost</a>&quot; without the
&quot;index.php&quot; to bring up your site.<o:p></o:p></p>

<p class=MsoNormal style='margin-left:1.0in'>Also, for this to work your Apache
server on the localhost must have mod_rewrite activated. You might want to
check to be sure this is the case. <o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:1.0in'>...Eric<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:.5in'>&lt;snip&gt;<o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>Eric,<o:p></o:p></p>

<p class=MsoNormal>I have exactly the same situation as Tom&#8217;s description
above and I have the .htaccess file in my root directory. I have followed all
the instructions that I have found (my htaccess file looks exactly the same as
above) and can also confirm that mod_rewrite is also activated for my Apache
install.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>However, I cannot get rid of a &#8220;?n=&#8221; from my
URLs. For example, my URLs read as:<o:p></o:p></p>

<p class=MsoNormal><a href="http://hip.eharch.com/?n=Materials/Materials">http://hip.eharch.com/?n=Materials/Materials</a><o:p></o:p></p>

<p class=MsoNormal>instead of <o:p></o:p></p>

<p class=MsoNormal><a href="http://hip.eharch.com/Materials/Materials">http://hip.eharch.com/Materials/Materials</a><o:p></o:p></p>

<p class=MsoNormal>which I would prefer.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Would you have any ideas or suggestions regarding getting
rid of the &#8220;?n=&#8221; ?<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Thanks. <o:p></o:p></p>

<p class=MsoNormal>Sameer<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>