1

This is what's in the root directory of the locally hosted web app

|- index.php |- feed.php |- .htaccess 

I want to direct all the requests to index.php, no matter what the requested uri is. E.g., I want the server to execute index.php even if feed.php is typed into the address bar.

How should I configure the .htaccess file so that the server work as I intend it to?

0

1 Answer 1

2

You can put the following in your htaccess file

RewriteEngine On RewriteRule !index\.php /index.php [NC,L] 
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.