Forum Moderators: phranque
[edited by: not2easy at 10:13 pm (utc) on Aug 28, 2016]
[edit reason] please use example.com/avoid specifics [/edit]
but it seems my variable is not getting passed
example.com/discounts/2bEcQPm-a-Big-Blue-Widget.html
and this is the -haaccess
I have tried putting escapes in front of the periods like this :
RewriteRule ^discounts/(.*)-a- http://example.com/$1
RewriteRule ^discounts/(\w+)-a- http://example.com/$1 [R,L]
I checked that http://example.com/2bEcQPm does actually go to the correct page, and it does.
Considering that I am using a code with numbers and letters eg 2bEcQPm
Would the discounts/(\w+)-a work ? I thought the" \w" was for alphabetical words ?