|
Server IP : 149.13.87.7 / Your IP : 185.174.145.2 Web Server : nginx System : Linux h2 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64 User : root ( 0) PHP Version : 8.0.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /mnt/platforms/workspaces/balaiodegatos.com/../godswarhorse.com/../expandutility.com/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
$base_url = "http://expandutility.com"; // replace with your website URL
$lastmod_date = date("Y-m-d"); // use current date as last modified for all pages
$sitemap = "";
// define array of URLs to include in sitemap
$urls = array(
"/", // home page
"/index.php",
"/privacy.php",
"/disclaimer.php"
);
// loop through URLs and add to sitemap
foreach ($urls as $url) {
$loc = $base_url . $url;
$xml = "";
$xml .= "<url>";
$xml .= "<loc>" . $loc . "</loc>";
$xml .= "<lastmod>" . $lastmod_date . "</lastmod>";
$xml .= "</url>";
$sitemap .= $xml;
}
// output sitemap XML code
header("Content-Type: application/xml; charset=utf-8");
$xml = '<?xml version="1.0" encoding="UTF-8"?>';
$xml .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
$xml .= $sitemap;
$xml .= '</urlset>';
echo $xml;
?>
AnonSec - 2021