ページのURLクエリを変更して最初の2文字を取得するにはどうすればよいですか。ページURLを変更して最初の2文字を取得する
http://127.0.0.1/site/flowers/search/bi/bird.html
http://127.0.0.1/site/flowers/search/ea/eagle.html
htaccessのコード:.htaccessファイルやPHP、このよう
http://127.0.0.1/site/flowers/index.php?query=Bird
http://127.0.0.1/site/flowers/index.php?query=eagle
に 127.0.0.1/site/.htaccess
RewriteEngine on
RewriteRule ([^/\.]+)/?.html$ index.php?query=$1 [L]
なぜ '/ site /'に最初のスラッシュの後に '+'がありますか?どのように '/site/flowers/index.php?query = Bird' URLを取得していますか?それはいくつかの形式の投稿やhrefリンク経由ですか? – anubhava
@anubhava、サー..フォーム投稿/site/flowers/index.php?query=Bird ....(アドレスバー) – moon93
.htaccesが見つかりました> ... 127.0.0.1/site/.htaccess – moon93