[pmwiki-users] I have a trouble about cleaning URL
Shigeru Kobayashi
kotobuki at gmail.com
Mon Dec 25 08:08:56 CST 2006
Dear all,
I have been trying to clean URL as described in the following web
page, but I have a problem.
http://www.pmwiki.org/wiki/Cookbook/CleanUrls#docroot
I'm hosting a PmWiki based wiki on Aplus.net. According to the
Aplus.net's knowledge base, mod_rewrite is supported.
http://www.apluskb.com/scripts/Does_AplusNET_s_hosting_servers_answer1475.html
The URL of the wiki is:
http://gainer.cc/pmwiki/index.php
(/gainer.cc/html/pmwiki/index.php)
And I'd like to change the URL as follows:
http://gainer.cc/index.php
(/gainer.cc/html/)
I created .htaccess file as follows:
RewriteEngine On
RewriteBase /
RewriteRule ^$ pmwiki/pmwiki.php [L]
RewriteRule ^index\\.php$ pmwiki/pmwiki.php [L]
RewriteRule ^([^/a-z].*) pmwiki/pmwiki.php?n=$1 [QSA,L]
But it seems that the rewriting does not work. Just to make sure, I
also tried again by replacing "pmwiki/pmwiki.php" with
"/gainer.cc/html/pmwiki/pmwiki.php", but got no luck.
* Currently, for some reason, http://gainer.cc/index.php exists to
redirect from http://gainer.cc/ to old MediaWiki based wiki. When I
confirmed, I renamed the index.php as _index.php.
I'm sorry for trouble you, but it would be much appreciated if you
give me any suggestions about this issue.
Best regards,
Shigeru Kobayashi
More information about the pmwiki-users
mailing list