I’m developing a website using PHP.
My .htaccess has this rewrite rule:
RewriteEngine On
RewriteRule ^book/([^/]*)\.html$ book.php?title=$1 [L]
So the URL that looked like: http://www.example.com/book.php?title=title-of-the-book
turns into http://www.example.com/book/title-of-the-book.html
In a specific case, from another page in the site, I want to link to pages like this:
http://www.example.com/book.php?title=title-of-the-book?myfield=1
that then turns into
http://www.example.com/book/title-of-the-book.html?myfield=1.html
Being ther, I cannot acces the GET variables using the usual PHP way
$variable = $_GET['myfield']
How do I solve this problem?
Specify
[QSA](Query string append) so you may pass a query string after your url.PS: Why are you using
*here? Wouldn’t+suit better?