How to force redrection when url contains question mark in htaccess?

by Thomas Carlton   Last Updated October 09, 2019 14:00 PM

I have a URL :

www.domain.com/PageName:ArgumentValue1,ArgumentValue2

I would like to make a redirection to

www.domain.com/apex/f?p=alias:PageName:ArgumentValue1,ArgumentValue2

I have done so far :

RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule (.*)$ ./apex/f?p=alias:$1 [L]

The redirection works properly except when an Argumentvalue has a question mark.

Is there any way to force such a redirection even if there is a question mark in an argument ?

PageName, ArgumentValue1 and ArgumentValue2 are all dynamic variables.

Thanks.

Tags : .htaccess


Related Questions


Updated April 09, 2015 00:00 AM

Updated August 03, 2015 14:00 PM

Updated April 09, 2015 00:00 AM

Updated November 13, 2015 11:00 AM

Updated November 19, 2015 12:00 PM