index.php以root身份登录htaccess

时间:2018-05-07 17:04:28

标签: .htaccess http redirect http-status-code-301

这是什么意思?我试图从URL中删除index.php并指向root。例如, https://www.example.com/index.php重定向到https://www.example.com/ 以下解决方案绝对正常。但是,我不清楚RewriteCond系列中使用的HTTP /。它有什么作用?有人可以解释一下吗?

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ https://www.aviatrix.com/$1 [R=301,L]

0 个答案:

没有答案