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.
我想将用户从默认页面重定向index.php到另一个页面。
index.php
即:http://www.example.com/project/到http://www.example.com/project/main/ar/
http://www.example.com/project/
http://www.example.com/project/main/ar/
我试过这个Redirect / /main/ar/,但安装它重定向到http://www.example.com/main/ar/project/
Redirect / /main/ar/
http://www.example.com/main/ar/project/
有什么问题?
也许试试
Redirect /project/ /project/main/ar/
根据您是否需要重定向项目的所有子路径,您可能需要查看此线程-> .htaccess 301 重定向路径和所有子路径