Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
URL からフォルダーを非表示にする必要があります。
例:
www.mysite.com/jango.php と入力した場合、次のディレクトリを読む必要があります: www.mysite.com/users/jango.php ですが、/users は表示したくありません。これをアドレス バーに表示したいだけです。 www.mysite.com/jango.php
mod_rewriteを使用する必要があります
あなたのために例のルールは
RewriteRule ^jango\.php$ /users/jango.php
あなたのでこれを使用してください.htaccess:
.htaccess
RewriteEngine On RewriteRule ^/users/([^/]*)$ /$1 [L]