linuxlearner
linuxlearner

Reputation: 31

Rename the index.php to others then how to do in WordPress?

now, i rename the index.php to home.php, when i click the category link, it will all handled by example.com/index.php 。so all the link aren't work. how to correct it? how to make home.php handle all the page. thank u

Upvotes: 0

Views: 3324

Answers (1)

SteveP
SteveP

Reputation: 19103

I think you need to modify your .htaccess file in the root directory. It has a rewrite rule to point everything at index.php. Change it to point to home.php.

Something like:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /home.php [L]
</IfModule>

Options All -Indexes

Upvotes: 3

Related Questions