SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Oct 2004
    Location
    uk
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Google sitemap on parked pages

    Hi guys


    I have about 350 parked names. Is there a way I can add a google sitemap to each but using the same file


    for instance


    domain1.com/sitemap.xml
    domain2.com/sitemap.xml

    The problem I see is that "sitemap.xml" is the same file on each name as parked names use the same files.

    Is there a way I could maybe do it dynamically?

  2. #2
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Just setup an .htaccess rule to parse sitemap.xml as php, then setup a variable for the domain from which the script was requested.
    PHP Code:
    <?php
    $sDomain 
    $_SERVER['HTTP_HOST'];
    ?>
    Maybe?
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •