2
A
回答
4
此代码对我的作品
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ /$1 [R=301,L]
+0
谢谢!像魅力一样工作 – ramo
1
可能它是这样的,你正在寻找:
Redirect 301 /index.php http://www.yoursite.com/folder/
相关问题
- 1. .htaccess将index.php重定向到/
- 2. 的mod_rewrite重定向根URI到index.php
- 3. .htaccess将根目录和index.php重定向到https根目录
- 4. 非www到www。重定向并将index.html重定向到index.php
- 5. 将index.php重定向到根用SSL不起作用
- 6. 将index.php重定向到根目录而不影响其他url
- 7. 如何将PHP重定向到根目录index.php
- 8. 只将index.php重定向到根域,没有任何GET变量
- 9. 将子文件夹index.php重定向到子文件夹根
- 10. 将index.php重定向到.htaccess中的根目录
- 11. 将所有内容重定向到index.php
- 12. 如何将index.php重定向到HTTPS?
- 13. 将所有内容重定向到index.php
- 14. htaccess将.domain.com重定向到www.domain.com/index.php
- 15. php从/index.php重定向到/
- 16. 的index.php力重定向到
- 17. 重定向 “/index.php?dir=” 到 “/”
- 18. .htacces - 将index.php重定向到不可见的index.php
- 19. 如何将www.site.com/index.php/重定向到www.site.com/index.php?
- 20. 301将index.html重定向到index.php,并从url中隐藏index.php
- 21. 如何将index.php重定向到index.php?route = home,并将其重写为/ home?
- 22. 如何将所有重定向到ssl和index.php但不是ssl,但重定向到特定页面上的index.php
- 23. .htaccess重定向index.php到根影响管理员登录
- 24. 重定向到根目录的index.php所有传入的请求
- 25. 重定向每个index.php到他的根文件夹
- 26. .htaccess从站点根目录重定向到index.php
- 27. 重定向到根
- 28. 夫妇苗条重定向到index.php与域名重定向
- 29. Joomla感动了,现在index.php将我重定向到根文件夹
- 30. http://localhost/index.php重定向到http:// localhost/xampp/
http://stackoverflow.com/questions/9369917/htaccess-redirect- index-php-to-root-including-subdomains – djb