Error coming in .htacess file about 301 redirect ??
Dear sir I have a webhosting account of godaddy and I am using more than 5 domains in one account. i am using Standard UCC SSL Certificate
1 is main domain and others are addon domains.
whenever I have used any code which is like this
deny from all
RewriteEngine On
RewriteCond %{HTTP_HOST} ^callandy.in$
RewriteRule (.*) https://www.callandy.in/https://www.callandy.in/$1" class="redactor-autoparser-object">https://www.callandy.in/https://www.callandy.in/$1 [R=301,L]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^callandy\.in[NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.callandy.in/https://www.callandy.in/$1" class="redactor-autoparser-object">https://www.callandy.in/https://www.callandy.in/$1 [R=301,L]
But My Domain is Not Redirect to all version its showing this error :
Warning, no 301 redirects are in place to redirect traffic to your preferred domain. Pages that load successfully both with and without www. are treated as duplicate content!
Like Its Showing This :
URL Resolved URL
http://callandy.in/ https://www.callandy.in/
http://www.callandy.in/ http://www.callandy.in/
https://callandy.in/ ERR_TLS_CERT_ALTNAME_INVALID
https://www.callandy.in/ https://www.callandy.in/
So due to that my server response time is also high.so kindly help me for that what can do??
Hello Callandy,
Sorry for the issue with your 301 redirect. This is issue is something that may require assistance with your hosting support department. When I look at your rewrites, they are definitely not coded correctly. You will need to fix them. "https://www.callandy.in/ https://www.callandy.in/" is NOT a valid URL. Remove the duplicate HTTPS entries and they should work.
If you have any further questions or comments, please let us know.
Kindest Regards,
Arnel C.