[英]Redirect request to folder with .htaccess
How can I set .htaccess to make我如何设置.htaccess来制作
http://www.example.com/folder http://www.example.com/folder
go to (assuming this is not made automatically)转到(假设这不是自动进行的)
http://www.example.com/folder/ ? http://www.example.com/folder/ ?
For existing directories, Apache already provides a configuration option via mod_dir.对于现有目录,Apache 已经通过 mod_dir 提供了一个配置选项。 Add the
DirectorySlash
directive to your main configuration file, or otherwise the root .htaccess file.将
DirectorySlash
指令添加到您的主配置文件或根 .htaccess 文件中。
DirectorySlash on
See the documentation .请参阅文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.