[pmwiki-users] Clean URLs and spaced pagenames

Pico Ben-Amotz pmwiki at ben-amotz.com
Sat Sep 8 10:59:04 CDT 2007


If a user tries to add a space within a page name that is entered on
the address field on a wiki farm that uses Clean URLs the address bar
goes through a two step transformation that winds up at the right
place, but with a non-clean URL.  Is there fix?

Of course, the user shouldn't be entering a space in the page name to
begin with, but if there is an easy fix I would like to be able to
implement it.

Example:

If the user enters the following in the address bar:

http://mysite.com/SomeGroup/Some Page

The content of the address bar goes through the following
transformations when executed:

1. http://mysite.com/SomeGroup/Another%20Page

2. http://mysite.com/pmwiki/field.php/SomeGroup/AnotherPage

Pico

- - - -
P.S. Here is my .htaccess

RewriteEngine On
#Rewrite base does not work on DreamHost
#RewriteBase /
RewriteRule ^$           pmwiki/field.php  [L]
RewriteRule ^index.php$  pmwiki/field.php  [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^([^/a-z].*) pmwiki/field.php?n=$1  [QSA,L]



More information about the pmwiki-users mailing list