Hi, I need a little help with the Regex for my Rewrite rule please.
I want to redirect all requests for the root and for a folder called "cfd" to a folder called "touch", and retain the name of the page that is being requested. All based on a RewriteCond.
Here is what i have so far:
RewriteCond %{HTTP:X-DeviceAtlas-touchScreen} 1
RewriteCond %{HTTP:X-DeviceAtlas-displayWidth} <500
RewriteRule ^(\/|\/cfd\/(.*))$ /touch/$1 [L,R=302]
This however does not work and the rewrite/redirect doesnt happen.
Any pointers?
Thanks
Sam