I believe you want the RewriteBase to be the root as served rather than the root as stored. Try "RewriteBase /" instead.<div><br class="webkit-block-placeholder"></div><div>Note, the should also allow "<a href="http://localhost">
http://localhost</a>" without the "index.php" to bring up your site.</div><div><br class="webkit-block-placeholder"></div><div>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.
</div><div><br class="webkit-block-placeholder"></div><div>...Eric<br><br><div><span class="gmail_quote">On 12/3/07, <b class="gmail_sendername">Tom Hayden</b> <<a href="mailto:tom.hayden.iii@mail.airmail.net">tom.hayden.iii@mail.airmail.net
</a>> wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">I am attempting to create "clean URLs" for my website. I am currently<br>developing on my home machine to get all the bugs worked out before I
<br>transfer everything to the real site.<br><br>The script is located in:<br>/website/singles/pmwiki.php<br>and the "direct" URL is:<br><a href="http://localhost/singles/pmwiki.php">http://localhost/singles/pmwiki.php
</a><br><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 "Clean URLs" 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 ^$ /singles/pmwiki.php [L]<br># Send requests for index.php to pmwiki.php
.<br>RewriteRule ^index\.php$ /singles/pmwiki.php [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 [QSA,L]<br>
<br>I set up my /website/singles/local/config.php file as follows:<br><br><?php if (!defined('PmWiki')) exit();<br>## Use "Clean URLs".<br>$EnablePathInfo = 1;<br>$ScriptUrl = "<a href="http://localhost">
http://localhost</a>";<br>## more configuration settings...<br><br>Then, when I try to load <a href="http://localhost/index.php">http://localhost/index.php</a>, I get /index.php<br>can not be found on this server.<br>
<br>Does any one have any suggestions as to what I might be doing wrong?<br>I would apprecaite any help I can get.<br><br><br>--<br>Tom Hayden III<br><br>Coherent solutions for chaotic situations<br><br><a href="mailto:tom.hayden.iii@mail.airmail.net">
tom.hayden.iii@mail.airmail.net</a><br>214-435-4174<br><br>2636 Verandah Ln.<br>Apartment 1431<br>Arlington Texas, 76006<br><br>_______________________________________________<br>pmwiki-users mailing list<br><a href="mailto:pmwiki-users@pmichaud.com">
pmwiki-users@pmichaud.com</a><br><a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br></blockquote></div><br> </div>