<?php

/**
 * Return absolute url (with page name)
 *
 * @return string
 */
function getAbsoluteUrl()
{
    $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? 'https' : 'http';
    return $protocol . '://' . $_SERVER['SERVER_NAME'] . getPage();
}

/**
 * Return canonical request url
 *
 * @return string
 */
function getPage() {
    $urlBits = explode("/", $_SERVER['REQUEST_URI']);
    array_pop($urlBits);
    return implode("/",$urlBits);
}

header("Content-Type: text/xml");
header('Cache-Control: no-cache');
header('Expires: -1');
header('Pragma: no-cache');
print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");

$baseURL = getAbsoluteUrl();

?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
        http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

            <url>
                            <loc><?php echo $baseURL; ?>/</loc>
                <lastmod>2018-02-15T03:50:56+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>1.0</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/stay-informed.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/instructors.php</loc>
                <lastmod>2018-02-15T00:22:28+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/cancel-payment.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/whats-in-the-pantry.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/class-descriptions.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/Beginner-Yoga-Course-Registration.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/Beginner-yoga-registration-paypal-payment-page.php</loc>
                <lastmod>2018-02-15T00:29:18+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/Course-Full.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/intermediate-yoga-course.php</loc>
                <lastmod>2018-02-14T23:37:02+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/Success.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/Intermediate-course-payment-page.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/pre-natal-yoga.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/Prenatal-registrations.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/kids-yoga.php</loc>
                <lastmod>2018-02-14T23:37:53+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/what-you-need-to-know.php</loc>
                <lastmod>2018-02-15T00:47:01+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/other-goodies.php</loc>
                <lastmod>2018-02-15T00:05:09+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/Links.php</loc>
                <lastmod>2018-02-15T00:25:44+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/timetable.php</loc>
                <lastmod>2018-02-15T00:55:30+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/prices.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/fast-track.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/contact-us.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/Private-Sessions.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/Newsletter.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/Location.php</loc>
                <lastmod>2018-02-15T01:30:38+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/faq.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/what-is-yoga.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/why-do-yoga.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/what-are-the-benefits-of-practicing-yoga.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/how-long-does-it-take-to-feel-the-benefits.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/what-is-the-best-time-to-practice.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/what-are-the-basic-rules-for-a-yoga-practice.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/do-i-need-to-bring-anything-to-class.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/i-am-a-beginner-what-do-i-need-to-know.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/i’m-not-flexible-how-can-i-practice-yoga.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/what-should-i-do-if-i-experience-pain-during-yoga.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/is-yoga-different-from-stretching.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/is-yoga-a-workout.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/what-if-i-cant-do-a-pose.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/i-am-too-old.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/i-have-a-medical-problem.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/what-style-of-yoga-should-i-practice.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/what-is-the-etiquette-in-a-yoga-class.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/is-it-okay-to-leave-during-a-class.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/i-dont-like-savasana-can-i-skip-it.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/do-i-need-to-sign-up-to-a-class-in-advance.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/what-do-you-offer.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/how-many-times-a-week-should-i-practice.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/can-i-do-yoga-while-pregnant.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/can-i-practice-yoga-during-my-period.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/purpose-of-practicing-sun-salutations.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/is-yoga-a-religion.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/what-does-om-mean.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/what-does-namaste-mean.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/i-dont-have-any-time.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/how-do-i-wash-my-yoga-mat.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/id-like-to-bring-yoga-to-my-workplace.php</loc>
                <lastmod>2018-02-14T23:15:14+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
                    <url>
                            <loc><?php echo $baseURL; ?>/do-you-offer-private-lessons.php</loc>
                <lastmod>2018-02-15T00:23:47+00:00</lastmod>
                <changefreq>weekly</changefreq>
                <priority>0.5</priority>
                    </url>
            
    </urlset>
