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.
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:
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.