Quote:
Originally Posted by Fou-Lu
You'll need to do a querystring evaluation, since querystrings are not matched by pattern for rewrite rule.
The question mark doesn't belong in the url. It separates the url from the querystring, and apache knows this as well. These characters should be encoded instead, otherwise you'll need to stack your rewritecond to handle the querystrings.
As for your GET, you can try under $_GET['Find Out Here'], which will contain no value.
|
Thanks for the suggestions. I am a bit lost with this as I am not experienced with this sort of stuff. Most of the information I can find on querystring evaluation is used to convert something like
http://mydomain.site/page.php?id=1
to
http://mydomain.site/page/1
I need to do the reverse
http://mydomain.site/page/this?-has-a-question
into
http://mydomain.site/index.php?page=page&name=this?-has-a-question
So I need a way to grab the querystring from the url
http://mydomain.site/News/Latest News/this?-has-a-question
which would be "-has-a-question"
and then append that to my rewrite rule
RewriteRule ^News/([^/]+)/([^/]+) index.php?page=News&feed=$1&name=$2&extra=%1 <-- append the "-has-a-question" here as another variable.
I have been trying all sorts of things for the last hour, but I have no idea what I am doing. If someone can help with this I would really appreciate it.