.htaccess 301 Redirects and Special Character Issue -


i have url ends

/presentation/item?k=zw52axjvbm1lbnrhbc1ozwfsdggtc2fmzxr5lxnly3vyaxr5lwvuz2xpc2g=& 

which need redirect http://domain.co.uk/films/ehss/

but when use following; doesn't work; i've tried escaping special characters ? adding \ before still no joy.

if of use being added beginning of htaccess file on wordpress site.

this i've been trying:

redirect 301 /presentation/item\?k=zw52axjvbm1lbnrhbc1ozwfsdggtc2fmzxr5lxnly3vyaxr5lwvuz2xpc2g=& http://domain.co.uk/films/ehss/ 

i've looked see if of other characters special characters , aren't. also, don't think can use regex either have 50 urls in same format above need redirected seo friendly urls.

you can parse query_string using mod_rewrite

rewriteengine on  rewritecond %{query_string} ^k=zw52axjvbm1lbnrhbc1ozwfsdggtc2fmzxr5lxnly3vyaxr5lwvuz2xpc2g=&$ [nc] rewriterule ^presentation/item$ http://domain.co.uk/films/ehss/? [r=301,l] 

Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -