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.
www.example.com をフォルダー名に書き換えます (リダイレクトしません)。私は書きます:
RewriteEngine On RewriteRule ^/?$ foldername
しかし、.htaccess は www.example.com/folder にリダイレクトされます。www.example.com を保持したい
末尾にスラッシュを追加してみてください。RewriteRule ^/?$ foldername/
RewriteRule ^/?$ foldername/
代わりに次のルールを使用します。
RewriteRule ^$ foldername [L]