How to Remove (/index) from URL and Website for SEO
How to remove index link: example (www.xyz.com/index ) to (www.xyz.com) to avoid duplicated website content for seo.
![How to Remove (/index) from URL and Website for SEO](https://www.freeseocheckers.com/blog/uploads/images/202104/image_750x_60783b0235449.jpg)
Start From Here ( 5 MINS READ TIME )
Add The following code in .htaccess file to redirect website or make website url canonicalization . This will save your website from duplicate content issues.
Example if your website is opening like this :
"https://www.yourwebsite.com/index" or "https://yourwebsite.com/index" or "www.yourwebsite.com/index"
& you want to remove /index link from URL & Website then add below code in your site's root .htaccess file:
RewriteEngine On
RewriteBase /
RewriteRule ^index$ / [NC,R,L]
After adding your website will look like: (example)
"https://www.yourwebsite.com" or "https://yourwebsite.com" or "www.yourwebsite.com"
Note: Replace “onpaperseo.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)