Vra

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.

Was dit nuttig?

Oplossing

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

Ander wenke

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

Gelisensieer onder: CC-BY-SA met toeskrywing
Nie verbonde aan StackOverflow
scroll top