i have own little mvc framework . has own .htaccess file redirects urls
index.php?load=$1
so every time try run query string example:
http:\\localhost\contact\func?id=56032&post=2
it takes http:\\localhost\contact\func
how can query string (id,post) via $_get variable ?
have qsa flag in htaccess files : http://httpd.apache.org/docs/current/rewrite/flags.html#flag_qsa
with flag, parameters on rewrited url preserved. so, code :
rewriterule /pages/(.+) /page.php?page=$1 [qsa]
a request /pages/123?one=two mapped /page.php?page=123&one=two.
Comments
Post a Comment