[pmwiki-users] Clean URLs in Wiki Farm
Paul Thewlis
paulthewlis at yahoo.co.uk
Thu May 15 17:37:34 CDT 2008
I just discovered PmWiki, and, so far, I'm loving it.
However, I do have a problem with the Clean URLs Wiki Farm I set up.
The problem is exactly the same as the one experienced here:
http://article.gmane.org/gmane.comp.web.wiki.pmwiki.user/48450/match=clean+u
rl+farm
Which is:
===========
I've set up a wiki farm and I'm now trying to configure it to use clean
urls. The original
site works just fine but when I try to add clean urls to one of
"farm wikis" I run into some problems.
I get a url that look like this:
<http://www.example.com/info/index.php/Main/HomePage>
If I've understood
<http://www.pmwiki.org/wiki/Cookbook/
<http://www.pmwiki.org/wiki/Cookbook/CleanUrls#farms> CleanUrls#farms>
correctly
I should change pmwiki.php to index.php in my .htaccess file
# Use mod_rewrite to enable "Clean URLs" for a PmWiki installation.
RewriteEngine On
# Define the rewrite base.
RewriteBase /info
# Send requests without parameters to pmwiki.php.
RewriteRule ^$ index.php [L]
# Send requests for index.php to pmwiki.php.
RewriteRule ^index\.php$ index.php [L]
# Send requests to pmwiki.php, appending the query string part.
RewriteRule ^([A-Z0-9\xa0-\xff].*)$ index.php?n=$1 [QSA,L]
But apparently it doesn't work. How can I remove the 'index.php'
part also?
===========
My .htaccess is exactly the same as above.
I have followed the solution given to the above problem:
http://article.gmane.org/gmane.comp.web.wiki.pmwiki.user/48451/match=clean+u
rl+farm
Which is:
Edit "local/config.php" file:
$ScriptUrl = "http://yourhost/info";
===========
Unfortunately this solution does not seem to work for me.
The URLs are fixed, i.e. the 'index.php' has been removed, but the pages
will not load. In Firefox I get 'Server not found' in IE8 I get 'Internet
Explorer cannot display the webpage'.
When I comment out the $ScriptURL line, the pages load OK, but the URLs are
back to:
http://www.example.com/info/index.php/Main/HomePage
Does anyone have any suggestions?
Many thanks,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20080515/694435c1/attachment-0001.html
More information about the pmwiki-users
mailing list