cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

URL Canonicalization test fail - best code which covers both URL Canonicalization and Https?

URL Canonicalization test fail
Hi,

My Some urls are not passing the URL Canonicalization Test .kindly suggest me what to do.

Case :

Domain Name : https://www.dehradunescorts.club/

If A am Putting This Code In .htaccess File Then its pass URL Canonicalization Test .But Others Urls Of This website is not Showing Https In Urls.

<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
</Files>

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(callgirlsinchandigarh\.com)(:80)? [NC]
RewriteRule ^(.*) https://www.dehradunescorts.club/$1 [R=301,L]
order deny,allow

--------------------------------------------------------------------------------------------------

If A am Putting This Code In .htaccess File Then its Not pass URL Canonicalization Test .But Others Urls Of The website is Showing Https In Urls.

<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
</Files>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?callgirlsinchandigarh\.com
RewriteRule ^(.*)$ https://www.dehradunescorts.club/$1 [R,L]

 

 

 

 

So Kindly Suggest me the best code which covers both URL Canonicalization and Https .

Regards

Rocky Martin

0 REPLIES 0