문제

I have centos server, I want to see my websile url along with /index.php in the address bar.

When I'm trying to access my website www.example.com, I want to see the url of the webpage should be www.example.com/index.php in the address bar.

I hope it will work by configuring .htaccess file. I'm not familiar with .htaccess.

도움이 되었습니까?

해결책

RewriteRule ^$ /index.php [L,R=301]

다른 팁

If index.php is in the DirectoryIndex list, you're doing a needless redirect/rewrite.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top