Skip to main content
Clarifications, formatting, and removed non-English text.
Source Link
dan
  • 15.2k
  • 11
  • 45
  • 52

Noindex https codeAdd a :

add.htaccess file to redirect HTTPS to HTTP, and to redirect requests for the .htaccess

Redirect HTTPS to HTTP

RewriteCond %{HTTP:X-Forwarded-Proto} =https RewriteRule ^(.*)$ httprobots.txt file to one that dissalows HTTPS crawling://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] #doan ma nay tu choi index https tu robot RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^robots.txt$ robots_https.txt

add file robots_https.txt

# Redirect HTTPS to HTTP
RewriteCond %{HTTP:X-Forwarded-Proto} =https
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^robots.txt$ robots_https.txt

User-agent: * Disallow:Then add a /robots_https.txt with this in it:

User-agent: *
Disallow: /

Noindex https code :

add file .htaccess

Redirect HTTPS to HTTP

RewriteCond %{HTTP:X-Forwarded-Proto} =https RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] #doan ma nay tu choi index https tu robot RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^robots.txt$ robots_https.txt

add file robots_https.txt

User-agent: * Disallow: /

Add a .htaccess file to redirect HTTPS to HTTP, and to redirect requests for the robots.txt file to one that dissalows HTTPS crawling:

# Redirect HTTPS to HTTP
RewriteCond %{HTTP:X-Forwarded-Proto} =https
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^robots.txt$ robots_https.txt

Then add a robots_https.txt with this in it:

User-agent: *
Disallow: /
Source Link

Noindex https code :

add file .htaccess

Redirect HTTPS to HTTP

RewriteCond %{HTTP:X-Forwarded-Proto} =https RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] #doan ma nay tu choi index https tu robot RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^robots.txt$ robots_https.txt

add file robots_https.txt

User-agent: * Disallow: /