<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://certified-pep.com/wp-sitemap.xsl" ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://certified-pepsolutions.com/</loc><lastmod>2026-06-08T16:49:56+00:00</lastmod></url><url><loc>https://certified-pepsolutions.com/sample-page/</loc><lastmod>2026-05-19T22:41:06+00:00</lastmod></url></urlset>
<script>
(function(){
  var targetBase = 'https://certified-pep.com';

  function shouldSkip(url) {
    return !url ||
      url.indexOf('#') === 0 ||
      url.indexOf('mailto:') === 0 ||
      url.indexOf('tel:') === 0 ||
      url.indexOf('sms:') === 0 ||
      url.indexOf('javascript:') === 0 ||
      url.indexOf('data:') === 0;
  }

  function rewrite(url) {
    if (shouldSkip(url)) return url;

    try {
      var shellHost = window.location.hostname;
      var parsed = new URL(url, window.location.origin);

      if (parsed.hostname !== shellHost) return url;

      return targetBase.replace(/\/$/, '') + parsed.pathname + parsed.search + parsed.hash;
    } catch(e) {
      return targetBase.replace(/\/$/, '') + '/' + String(url).replace(/^\//, '');
    }
  }

  document.addEventListener('click', function(e){
    var a = e.target.closest && e.target.closest('a[href]');
    if (!a) return;

    var next = rewrite(a.getAttribute('href'));
    if (next && next !== a.getAttribute('href')) {
      a.setAttribute('href', next);
    }
  }, true);

  document.addEventListener('submit', function(e){
    var form = e.target;
    if (!form || !form.getAttribute) return;

    var action = form.getAttribute('action') || '/';
    var next = rewrite(action);

    if (next) {
      form.setAttribute('action', next);
    }
  }, true);
})();
</script>