Error coming in .htacess file about 301 redirect ??

  • updated
  • Answered

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} ^$

RewriteRule (.*)$1" class="redactor-autoparser-object">$1 [R=301,L]

RewriteEngine On

RewriteCond %{HTTP_HOST} ^callandy\.in[NC]

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(.*)$$1" class="redactor-autoparser-object">$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 :


So due to that my server response time is also kindly help me for that what can do??

Arnel C
  • Answered

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