xamppサーバーでphpスクリプトを使用してURL書き換えを試みました。最初に、スクリプトと同じフォルダーに .htaccess を作成し、その中に次の行を書きました
RewriteEngine On # Turn on the rewriting engine
RewriteRule ^direct/?$ direct_name_here.php [NC,L]
localhost/map/direct_here123.php を localhost/map/direct/ に書き換えます
ただし、ブラウザには localhost/map/direct/ ではなく localhost/map/direct_here123.php という URL が表示されます。
どうすれば修正できますか?
よろしくED