PHP +. Htaccess ile erişim GET değişkenleri

0 Cevap php

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: www.example.com/book.php?title=title-of-the-book turns into 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: www.example.com/book.php?title=title-of-the-book?myfield=1 that then turns into www.example.com/book/title-of-the-book.html?myfield=1.html

Orada olmak, ben her zamanki PHP şekilde kullanarak GET değişkenleri acces olamaz

$variable = $_GET['myfield']

Nasıl bu sorunu çözmek?

0 Cevap