Sitemap

Discussion in 'Modules / Plugins / Modifications' started by Eric Barnes, Sep 25, 2007.

Thread Status:
Not open for further replies.
  1. Eric Barnes Guest

  2. Eric Barnes Guest

    I also wanted to add that I totally changed a site from using CGI to 68 Classifieds. I changed the name servers Friday and submitted a new site map that day and now it is fully indexed with the new structure. The old links still remain in the cache but I was amazed at how quickly they re-indexed everything.
  3. free2take Customer

    Great mod - is it 3.1 compatible until 4 goes live ?
  4. Success New Member

    Is it possible to auto generate the sitemap?
  5. manilaboy Customer

    Is the site map module included and installed on the V4 hosted version?
  6. seymourjames All Hands On Deck

    problem with the zip

    Is there a problem downloading the zip file? The system keeps asking me for a password but I am already logged in. When I try to download the file it says I need to login as I do not have sufficient privileges.
  7. Eric Barnes Guest

    Can you try it now? You should be able to download.
  8. ksuralta Customer

    Same question for me. How do we do this? (cron job? shell script as site map file?)
  9. Eric Barnes Guest

    This file is generated with fresh content every time it is accessed. So no need for a cron job or anything.
  10. ksuralta Customer

    Err.. I'm now confused.
    Here's what I did to create a sitemap using Firefox:
    1) Accessed http://<mysite>/modules.php?mod=sitemap
    2) Right-click on the page. Click "View Page Source".
    3) On source view page, click "File->Save Page As". Save file "sitemap.xml"
    4) Upload "sitemap.xml" to my web root directory.

    I don't see how "sitemap.xml" could be constantly updated.
    Is there a better way to do this?

    Thanks,
  11. ksuralta Customer

    Ok, I understand now.
    I updated my sitemap in Google from "sitemap.xml" to "modules.php?mod=sitemap".
  12. Eric Barnes Guest

    Also you can add this to a robots.txt file and other search engines should pick it up:

    Code:
    Sitemap: http://yoursite.com/modules.php?mod=sitemap
    
  13. ksuralta Customer

    Thanks! I didn't know that.
    This just saved me time from submitting my sitemap to Yahoo, MS, etc.
  14. manilaboy Customer

    Do you have this sitemap mod for V3?
  15. seymourjames All Hands On Deck

    Defined Pages

    I have looked at my sitemap which is automatically generated using your script but it does not seem to include pages I have defined using the page editor (I have about 60). I also notice that the script generates the URLs with php extensions and not the renamed URLs which have gone through the SEO module (nearly everything) and what has been defined by the .htaccess file. Is that a problem? Is this something you are likely to do with the sitemap module? Would it be an enhancement?

    An aside I am unsure about what is happening because if I type a php formatted url into the browser it does not redirect either. For example french properties for sale does not come automatically from the same url with .php does as it does when I am on my site. I thought it would do that but that is my lack of knowledge.
  16. Lhotch curmudgeon

  17. Lhotch curmudgeon

    Looks like the code to include pages added via admin is not in this version.

    Im not sure if the ollowing works with the SEO mod installed our not but you can try it. Open the sitemap mod file index.php and at the bottom of the file, right above the last "echo" statment add the following.

    Code:
    //listings
    $sSQL="SELECT * FROM ".PREFIX."pages WHERE pPublish='Y'";
    $result=$db->query($sSQL);
    while ($rs=$result->fetch())
    {
    	$link="pages.php?page=".$rs['pageID'];
    	echo "<url>\n<loc>".URL."/" . $link . "</loc>\n<lastmod>".$today."</lastmod>\n<changefreq>monthly</changefreq>\n<priority>.6</priority>\n</url>\n";
    }
    
    The URLs in the page are rewritten as the page is loaded, you are not being redirected. So if you enter the url category.php that is the page that is displayed however if you mouse over any of the links on that page you will see that the URL are the friendly version.

    Redirecting pages is NOT search engine friendly and why the SEO mod rewrites the URLs as opposed to redirecting pages. With that in mind it cant rewrite a URL that you type in but it can rewrite the URL's within a page that is being displayed so that they all appear friendly.
  18. seymourjames All Hands On Deck

    it works

    To be clear because I do not want to make mistakes, a rewrite like this is below O.K. from a search engine perspective? A redirect is different because it goes to another url.

    #RewriteRule ^categories\.html$ category.php [NC]

    I tried your code and it seems to work well. Many thanks. So the second part of my question is does it matter that google picks up the php formatted url and not the renamed URL.html.
  19. seymourjames All Hands On Deck

    problem sitemap module

    My sitemap module is doing weird things. For example it is rendering the to URLS within the sitemap.

    http://www.mysite/category.php?cat=provence-alpes-azur

    and

    property provence alps azur

    The second is correct. The' slug' in the standard sitemap file is 'property-provence-alps-azur'. The other page does not truly exist with content. Any ideas?

    The second problem is that the sitemap module is not picking up subsequent pages - i.e. page 2 of this category does not get rendered.
  20. Lhotch curmudgeon

    A rewrite and a redirect are two different things.

    A rewrite is what its name implies and actually changes the URL's in the pages being served by the web server. The result is a web page that displays different URL's for the links than what is actually in the HTML document.

    A redirect does as its name implies. When a client machine asks for a web page from a server, the server sends it a different page altogether. Redirection has been highly abused by people over the years and I dont recall the specifics but if you do need to redirect via apache there are right and wrong ways to do it.
Thread Status:
Not open for further replies.

Share This Page