• In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
  • Most users ever online was 65 on Mon Jul 08, 2019 3:41 am
  • Users browsing this forum: No registered users and 1 guest

Christian Web Hosting and Designs Community forum Gabriel Web Hosting & Designs

It is currently Sat Aug 24, 2019 3:35 pm
Change font size
Preset Styles:

w can I use index.php instead of index.html for my site?

w can I use index.php instead of index.html for my site?

Postby admin » Sun Oct 21, 2012 1:54 am

If you remove index.html, other files with index.* will show up in its place. So, if index.php is the only file named index.* in public_html, it will show.

Alternatively you can create a file called .htaccess in your public_html directory that contains this line:

DirectoryIndex index.php


Make sure to remove that line from .htaccess if you no longer wish to see index.php when viewing your website.
User avatar
admin
Site Admin
 
Posts: 193
Joined: Fri Oct 19, 2012 4:25 pm

Return to cPanel FAQs

cron