I am trying to make the following redirection using .htaccess.
Redirect this:
http://www.example.com/[email protected]
To this:
http://www.example.com/index.php?something
So basically all I want is to remove @gmail.com from the query string whenever is presented while keeping everything else.
I tried the following:
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(.*)@gmail.com$
RewriteRule (.*) $1?%1%2? [R=permanent]
Unfortunately didn't work even after doing multiple tweaks. What is wrong?
[email protected]should be taken care by which file in backend? Thank you.