I would like to add two 301 redirections in the .htaccess file, on an Apache server
1-One 301 redirection would be :
www.example.com/string1?fixed_text=anystringp=2
to :
www.example.com/string1?p=2
In other words, the following must be deleted from the url :
fixed_text=anystring
2- The other 301 redirection would be :
www.example.com/string1?fixed_text=anystring
to :
www.example.com/string1
In other words, the following must be deleted from the url :
?fixed_text=anystring
3- where string1 and anystring are variable alphanumeric strings, strings may include :
A to Z
a to z
0 to 9
/
.
-
&
string1 and anystring may have up to 200 characters
and where fixed_text is a fixed text (invariable text).
I thank you very much in advance for any help in this matter.
Patrick