0

I have two files on my root directory named 'index.html' and 'index.php'. when I browse 'localhost/dir_name' it loads 'index.html'. why 'index.php' is not loaded on the browser..??

2

1 Answer 1

0

if you want to load index.php you will need .httaccess at root code for that should be

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.