📁 File Manager
Editing:
/home/wedigitalindia/public_html/manralsolar.com/include/head.php
<?php function path(){ echo "https://www.manralsolar.com"; } include_once('include/connection.php'); $actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; // echo $actual_link;exit; $host=$_SERVER['HTTP_HOST']; $currentURL = $_SERVER['REQUEST_URI']; if ($_SERVER['HTTPS'] != 'on') { ?> <script>window.location.href = "https://<?php echo $host.$currentURL ?>"; </script> <?php } if (strpos($currentURL, '?') !== false) { $redirectURL = 'https://www.manralsolar.com/404'; // Change this URL to your desired destination header('Location: ' . $redirectURL); // exit; } if (strpos($currentURL, 'index') !== false) { $redirectURL = 'https://www.manralsolar.com/'; // Change this URL to your desired destination header('Location: ' . $redirectURL); // exit; } $query="SELECT * FROM meta_tag WHERE page_name='$actual_link' "; $meta_all=mysqli_query($conn,$query); $row=mysqli_fetch_array($meta_all); ?> <!DOCTYPE html> <html class="no-js" lang="en"> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <head> <meta charset="utf-8" /> <meta http-equiv="x-ua-compatible" content="ie=edge" /> <title><?php echo $row['meta_title']; ?></title> <meta name="description" content="<?php echo $row['meta_description']; ?>" /> <meta name="keywords" content="<?php echo $row['meta_keyword']; ?>"> <!-- For IE --> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- For Resposive Device --> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- For Window Tab Color --> <!-- Chrome, Firefox OS and Opera --> <meta name="theme-color" content="#913BFF"> <!-- Windows Phone --> <meta name="msapplication-navbutton-color" content="#913BFF"> <!-- iOS Safari --> <meta name="apple-mobile-web-app-status-bar-style" content="#913BFF"> <!-- <link rel="manifest" href="site.webmanifest" /> --> <link rel="shortcut icon" type="image/x-icon" href="<?php path(); ?>/img/logo/Manral logo 1.png" /> <!-- Place favicon.ico in the root directory --> <!-- CSS here --> <link rel="stylesheet" href="<?php path(); ?>/assets/css/bootstrap.min.css" /> <link rel="stylesheet" href="<?php path(); ?>/assets/fonts/bootstrap-icons.css" /> <link rel="stylesheet" href="<?php path(); ?>/assets/css/animate.min.css" /> <link rel="stylesheet" href="<?php path(); ?>/assets/css/slick.css" /> <link rel="stylesheet" href="<?php path(); ?>/assets/css/nice-select.css" /> <link rel="stylesheet" href="<?php path(); ?>/assets/css/magnific-popup.css" /> <link rel="stylesheet" href="<?php path(); ?>/assets/css/metisMenu.css" /> <link rel="stylesheet" href="<?php path(); ?>/assets/css/aos.css" /> <link rel="stylesheet" href="<?php path(); ?>/assets/css/spacing.css" /> <link rel="stylesheet" href="<?php path(); ?>/assets/css/main.css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css"> <link rel="canonical" href="<?php echo $actual_link; ?>" /> <meta name="google-site-verification" content="6Ndm6_BUJofKkhfQ6kLzbTm2JvB6KsmkS6WiatBofxs" /> <!-- head code== --> <script src="https://www.google.com/recaptcha/api.js" async defer></script> <script async src="https://www.googletagmanager.com/gtag/js?id=G-RNZKR4R0S6"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-RNZKR4R0S6'); </script> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "LocalBusiness", "name": "Manral Solar", "image": "https://www.manralsolar.com/", "@id": "", "url": "https://www.manralsolar.com/", "telephone": "+91-96393 34150", "address": { "@type": "PostalAddress", "streetAddress": "Gas Godam Road Near Jeena Bhawan Chadhayal,", "addressLocality": "Haldwani", "postalCode": "263639", "addressCountry": "IN" } , "sameAs": [ "https://www.facebook.com/manralassociatessolar/", "https://www.instagram.com/manralassociatessolar/", "https://www.linkedin.com/company/manral-associates/", "https://x.com/Manral_Solar" ] } </script> </head>
Save
Cancel