これは私の現在のhtaccessファイルです
DirectoryIndex index.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^register/ index.php?view=register [L]
RewriteRule ^news/([0-9]+)/[0-9a-z\-]*/$ index.php?view=news&id=$1&page=$2 [L]
RewriteRule ^movie/([0-9]+)/[0-9a-z\-]*/$ index.php?view=movies&id=$1&title=$2 [L]
RewriteRule ^actor/([0-9]+)/[0-9a-z\-]*/$ index.php?view=actor&id=$1&name=$2 [L]
RewriteRule ^country/([0-9]+)/[0-9a-z\-]*/$ index.php?view=country&id=$1&name=$2 [L]
RewriteRule ^country/([0-9]+)/[0-9a-z\-]/[0-9]*/$ index.php view=country&id=$1&name=$2$country=$3 [L]
問題は、domain.com/country/3/usa/1/ にアクセスすると、属性「国」が見つからないことです。
私はやってみました
echo $_GET['国'];
ただし、未確認の変数のみを返します。
前もって感謝します