[Plugin: Simple 301 Redirects] Ignore Get Parameters
-
The redirect function should ignore the Get Parameters. Right now it doesn’t, so URLs which have get parameters like the google analytics parameters – utm_source, utm_target, don’t get redirected
I added a couple lines to the redirect function to fix it.
function redirect() { // this is what the user asked for (strip out home portion, case insensitive) $userrequest = str_ireplace(get_option('home'),'',$this->getAddress()); $userreqarray = explode('?', $userrequest); $userrequest = $userreqarray[0]; $userrequest = rtrim($userrequest,'/');
Thanks for the plugin ??
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: Simple 301 Redirects] Ignore Get Parameters’ is closed to new replies.