apache - htaccess string query - redirect only from home but carry params -
so need redirect when these params in url home...because need hold on params after redirect happens, not want redirect triggered on , on because params met. please help, many thanks!
from: /?color=blue&derps=many&db=true
to: /path-to-direct-to?color=blue&derps=many&db=true
<ifmodule mod_rewrite.c> rewriteengine on rewritecond %{request_uri} / rewritecond %{query_string} ^color=blue&derps=many&db=true rewriterule ^ /path-to-direct-to [r=301,qsa,l] </ifmodule>
Comments
Post a Comment