Home Redirect / Rewrite with .htaccess of an url containing :
Reply: 1

Redirect / Rewrite with .htaccess of an url containing :

Revious Published in 2017-12-06 14:41:01Z

I'm trying to redirect from /index.php?option=com_k2&view=itemlist&task=category&id=44:pinco to google.it

Note the special char :

But it doesn't seem to work.

This is one of the tests I've tried. Where am I wrong?

redirect 301 /?option=com_k2&view=item&id=44:pinco http://www.google.it
starkeen Reply to 2017-12-06 15:06:34Z

You can not redirect Query String using Redirect directive. You need to check Query String using ℅{QUERY_STRING} variable.

RewriteEngine on

RewriteCond ℅{QUERY_STRING} ^option=com_k2&view=itemlist&task=category&id=44:pinco$
RewriteRule ^index\.php$ http://google.it? [L,R]
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.388557 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO