[pmwiki-users] I need help with clean URLs
haganfox at users.sourceforge.net
Sat Aug 12 18:02:12 CDT 2006
On 8/12/06, info at theburroughsproject.com <info at theburroughsproject.com> wrote:
> Patrick, thank you very much for clearing all that up. Unfortunately,
> this still isn't working for me. This is what I've done:
> I created an "index.php" file, that contains the single line:
> <?php include_once('pmwiki.php');
> This works fine for making "www.example.com" work.
> Then I created an .htaccess file with exactly this in it:
> # Use mod_rewrite to enable "Clean URLs" for a PmWiki installation.
> RewriteEngine On
> # The rewrite base will be the document root.
> RewriteBase /
> # Send requests without parameters to pmwiki.php.
> RewriteRule ^$ pmwiki.php [L]
> # Send requests for index.php to pmwiki.php.
> RewriteRule ^index\.php$ pmwiki.php [L]
> # Send requests to pmwiki.php, appending the query string part.
> RewriteRule ^([^/a-z].*) pmwiki.php?n=$1 [QSA,L]
> and placed it in my main web folder (the same one that contains
> At this point URLs like "www.example.com/SomeGroup/SomePage" do not
> work, I just get a 404, but the old URLs, with the
> "?n=SomeGroup.SomePage" still work fine.
One way to test whether your .htaccess is causing URLs to be rewritten
would be to delete or rename the index.php file and try
http://www.example.com/index.php to see if the next to last rule has
More information about the pmwiki-users