I have a web site that allows users to search for items matching keywords. I'd like the acceptable characters in the keywords to be as broad as possible and want to be able to rewrite URLS as follows: [us-camera.gear-online-shop.com...]
to:
[us-camera.gear-online-shop.com...]
Where the plus in the keywords is a URL encoded space. i.e. Search for all camera gear matching "Series 6.0"
I am having trouble getting a regular expression matching the . (dot). At the moment I can match "Series+60" but not "Series+6.0".
Here is the rewrite rule I have at the moment:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (/¦\.htm¦\.php¦\.html¦/[^.]*)$ [NC]
RewriteRule ^([0-9A-Za-z\.\s_\+\¦\:=\^\'\(\)\*`~;\-]*)$ index.php?keywordsText=$1
I would be very grateful if anyone can help.