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.
我想这样做,如果访问者导航到:
http://www.website.com/folder
他们被重定向到:
http://www.website.com/FOLDER
我只想影响(或打算)这个特定的文件夹。
我试过了:
RewriteEngine On RewriteBase /FOLDER/ RewriteRule ^folder(/.*)?$ /FOLDER$1 [L,R=301]
但我认为这是不对的
在文档根目录的 htaccess 文件中,
RewriteEngine On RewriteRule ^folder(/.*)?$ /FOLDER$1 [L,R=301]
应该足够好。您不需要重写基础,但我认为这不会影响它。