I've come across a bug in my site: basically, it won't allow page names with full stops (periods) in them. I know the root of the problem is in my .htaccess
file.
RewriteEngine on
RewriteRule ^([^/\.]+)/?$ index.php?section=$1 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ index.php?section=$1&page=$2 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ index.php?section=$1&page=$2&split=$3 [L]
Here the regex will not match anything with a period, this is intentional if a user is trying to directly access a file.
Here are some examples of common URLs.
games/Spider:+The+Secret+of+Bryce+Manor
games/Orbital
features/Interviewed:+Dennis+Sijnen+from+No+Monkeys
news/all/4
The split
portion of the URL is usually only used for pagination. The page
portion of the URL is where I would want to place full stops, for example:
games/Must.Eat.Birds
As I'm not particularly good at either mod rewrite or regex I'd just like a solution that allows full stops. I know it could potentially be a more complex regex and here I'm out of my depth.
Thanks for any help.