I am not able to redirect a www.miweb.com/%E2%80%8E to www.miweb.com
I have tried with htaccess:
Redirect 301 /%E2%80%8E http://www.miweb.com
php
$cadena = 'http://www.miweb.com/%E2%80%8E';
if(preg_match('/\/%E2%80%8E/', $cadena)){
header( "HTTP/1.1 301 Moved Permanently" );
header( "Location: http://www.google.es" );
}
Must be used
%{THE_REQUEST}
to match the request before it is decoded, sodoesn't work, but this does:
Also it looks like you are redirecting within the same server, so you don't need to put
http://loquesea/blahblah
, you can do it like this:Simply override the norm:
Try this:
EDITION: