php - Wordpress Won't Keep My Url Params -



php - Wordpress Won't Keep My Url Params -

i'm working on wp website , anytime add together url params url, redirects page version without params.

example:

http://mysite.com/?foo=bar -> redirects -> http://mysite.com/

http://mysite.com/contact-us/?foo=bar -> redirects http://mysite.com/contact-us/

how can prepare this? need params load page various reasons.

contents of .htaccess (edited add together qsa - isn't working):

# begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l,qsa] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l,qsa] </ifmodule> # end wordpress

you have utilize query_vars create happen. wordpress stores query string parameters may need in global object , ignores else.

you need instruct following:

instruct wordpress save variables. add together filter query_vars that. illustration given in link below. retrieve info using $wp_query->query_vars['customvariable'] instead of regular _get or _post.

the details can found here: http://codex.wordpress.org/custom_queries#custom_archives

php apache wordpress redirect rewrite

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -