Additional possible .htaccess errors.

Jump to: navigation, search

Hey ’tra,

(I've chosen to knock your user name down to one syllable in compliance with my self-imposed verbiage reduction initiative.)

The .htaccess "fix" we used several weeks ago (Potential Page Title Conflicts?: / vs _-_) may have open up another "can of worms" (although it's unclear of our previous "fix" is creating the issues described in this thread).

It appears that PortlandWiki URLs now break when there's a "." (dot) somewhere in the URL. More specifically, they're accessible via the "ugly" URL format, but not the "clean" format.


Terry D. Schrunk

Since your regex skills are more advanced than mine, would you mind looking into this?


WikiMaster (talk)13:06, 28 October 2011

Thanks 'ster! Yeah, I've been aware of this issue for a few days now, but haven't had time to work on it. I actually left you a board message a couple hours ago about it, trying to pass the buck to you. But I may have some time tonight to look at it.

As for my regex skills, it's pretty hard to be less advanced than me at it, but I'll do my best.

kotra (talk)14:45, 28 October 2011
Current .htaccess
RewriteEngine On

RewriteCond %{REQUEST_URI} ^/.*&.*
RewriteRule ^/?(.*)&(.*)$ /index.php?title=$1\%26$2 [L,NE]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?title=$1 [L,QSA]
Articles that now seem to function
WikiMaster (talk)22:05, 30 October 2011