Redirect All Requested URL To Index.php Using .htaccess

So you want to redirect all URL to index.php, and then want to manage requested URL like include landing pages or particular function as per URL. Right? So here we go 🙂 

First thing is that you have to RewriteURL in .htaccess.

 

Write in .htaccess, so all URL can redirect to index.php or any page you want, but here i assume index.php because it’s home/main page. and here i will include landing page as per URL.

 

Read Website URL without file extension

Leave a Reply

Your email address will not be published. Required fields are marked *