Remove index.php or index.html from URL or Website
How to remove index.php or index.html from URL or website easily
![Remove index.php or index.html from URL or Website](https://www.freeseocheckers.com/blog/uploads/images/202104/image_750x_607836ccdc0ba.jpg)
Start From Here ( 5 MINS READ TIME )
Add The following code in .htaccess file to remove (index.php or index.html) from URL or Website Easily
Example if your website is opening like this :
"https://www.yourwebsite.com/index.html" or "https://yourwebsite.com/index.html" or "www.yourwebsite.com/index.html"
or
"https://www.yourwebsite.com/index.php" or "https://yourwebsite.com/index.php" or "www.yourwebsite.com/index.php"
& you want to remove index.html /index.php link from URL & Website then add below code in your site's root .htaccess file:
RewriteCond %{REQUEST_URI} !/$
After adding your website will look like: (example)
"https://www.yourwebsite.com" or "https://yourwebsite.com" or "www.yourwebsite.com"
Note: Replace “yourwebsite.com” with your actual or your domain name wherever required.
Note: Backup your current .htaccess file and then add these rules.
What's Your Reaction?
![like](https://www.freeseocheckers.com/blog/assets/img/reactions/like.png)
![dislike](https://www.freeseocheckers.com/blog/assets/img/reactions/dislike.png)
![love](https://www.freeseocheckers.com/blog/assets/img/reactions/love.png)
![funny](https://www.freeseocheckers.com/blog/assets/img/reactions/funny.png)
![angry](https://www.freeseocheckers.com/blog/assets/img/reactions/angry.png)
![sad](https://www.freeseocheckers.com/blog/assets/img/reactions/sad.png)
![wow](https://www.freeseocheckers.com/blog/assets/img/reactions/wow.png)