[ad_1]
I am trying to redirect my website from domainname.in to domainname.com, however, after adding redirection – I dont have any further option to add redirection for the internal pages. When I add a wildcard redirection, the domain internal links are not the same, hence it leads to a 404 error. I am looking for a solution where I can ensure all the internal pages from domainname.in are redirected to domainname.com
[ad_2]
One solution you might consider is implementing 301 redirects for each individual page from domainname.in to its corresponding page on domainname.com. While it may take a bit more time upfront, this approach ensures that visitors and search engines are seamlessly redirected to the correct pages without encountering any 404 errors.
Alternatively, if you’re using a CMS like WordPress, there are plugins available that can help automate this process and manage the redirects more efficiently.
Remember to thoroughly test the redirects to ensure they’re working as expected before finalizing the switch. Best of luck with your redirection efforts!
You can try and check .htaccess rule and add below rule manually and check :
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ https://example./$1 [L,R=301,NC]