byebyebyezzz
byebyebyezzz

Reputation: 61

.htaccess redirect for index.php

I have this code on my .htaccess

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ decode.php

When I go to www.my_website/index the decode.php is called

However, when I go to www.my_website , the decode.php is not called.

decode.php is just used to load header and footer.

Upvotes: 0

Views: 95

Answers (1)

Dany
Dany

Reputation: 765

In your .htaccess file try to add DirectoryIndex decode.php index.php

Upvotes: 1

Related Questions