skip to Main Content

PHP – strstr() returns false but the $haystack contains the $needle – Plesk

This is a very strange error, i am trying to fix it without success. I am trying to check if a link contains a string: $actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; echo $actual_link; The output is: http://xxx.xxx.xxx.xxx/plesk-site-preview/***********.com/xxx.xxx.xxx.xxx/ Then: if(strstr($actual_link,"plesk-site-preview") ){ echo"<meta name='robots' content='noindex'>";…

VIEW QUESTION

Disable SSL on a specific URL – CPanel

I want to disable https from a single link, forcing it to http. https://tipografiasartore.it/autodiscover/autodiscover.xml I added this string to my .htaccess file but it ain't working: RewriteEngine on RewriteCond %{HTTPS} on RewriteRule ^autodiscover/autodiscover.xml http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] My .htaccess so far: <IfModule…

VIEW QUESTION
Back To Top
Search