68 Classifieds Forums

Sitemap

This is a discussion on Sitemap within the v4 Modules / Modifications forums, part of the Help & Support category; Ok, I understand now. I updated my sitemap in Google from "sitemap.xml" to "modules.php?mod=sitemap"....


Go Back   68 Classifieds Forums > Help & Support > v4 Modules / Modifications

Reply
 
LinkBack (1) Thread Tools Display Modes
  #11  
Old 04-07-2008, 11:38 AM
Member
 
Join Date: Oct 2007
Posts: 60
Rep Power: 6
ksuralta is on a distinguished road
Default

Ok, I understand now.
I updated my sitemap in Google from "sitemap.xml" to "modules.php?mod=sitemap".
__________________
Kenneth
http://www.phlist.com
v4.0.8 Developer + Custom Template
Reply With Quote
  #12  
Old 04-07-2008, 11:45 AM
Eric Barnes's Avatar
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,307
Rep Power: 99
Eric Barnes is a jewel in the rough
Default

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
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter
Reply With Quote
  #13  
Old 04-08-2008, 11:35 AM
Member
 
Join Date: Oct 2007
Posts: 60
Rep Power: 6
ksuralta is on a distinguished road
Default

Thanks! I didn't know that.
This just saved me time from submitting my sitemap to Yahoo, MS, etc.
__________________
Kenneth
http://www.phlist.com
v4.0.8 Developer + Custom Template
Reply With Quote
  #14  
Old 04-08-2008, 05:36 PM
Senior Member
 
Join Date: Oct 2006
Posts: 134
Rep Power: 12
manilaboy is on a distinguished road
Default

Quote:
Originally Posted by suzkaw View Post
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
Do you have this sitemap mod for V3?
__________________
Mike D.
Reply With Quote
  #15  
Old 04-13-2008, 01:01 PM
Moderator
 
Join Date: Mar 2008
Posts: 553
Rep Power: 16
seymourjames has a spectacular aura about
Default 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.

Last edited by seymourjames; 08-21-2008 at 02:49 PM. Reason: php urls being indexed
Reply With Quote
  #16  
Old 04-14-2008, 03:24 PM
Lhotch's Avatar
Moderator
 
Join Date: Mar 2006
Posts: 3,663
Rep Power: 90
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by manilaboy View Post
Do you have this sitemap mod for V3?
Sitemap.php
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
  #17  
Old 04-14-2008, 03:30 PM
Lhotch's Avatar
Moderator
 
Join Date: Mar 2006
Posts: 3,663
Rep Power: 90
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by seymourjames View Post
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?
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";
}
Quote:
Originally Posted by seymourjames View Post
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 http://www.french-property-sale.eu/category.php does not redirect to http://www.french-property-sale.eu/p...es-france.html as it does when I am my site. I thought it would do that but that is my lack of knowledge.
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.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
  #18  
Old 04-16-2008, 07:04 AM
Moderator
 
Join Date: Mar 2008
Posts: 553
Rep Power: 16
seymourjames has a spectacular aura about
Default 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.
Reply With Quote
  #19  
Old 04-16-2008, 08:47 AM
Moderator
 
Join Date: Mar 2008
Posts: 553
Rep Power: 16
seymourjames has a spectacular aura about
Default 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.

Last edited by seymourjames; 08-21-2008 at 02:53 PM. Reason: avoid indexing of php urls
Reply With Quote
  #20  
Old 04-16-2008, 09:26 AM
Lhotch's Avatar
Moderator
 
Join Date: Mar 2006
Posts: 3,663
Rep Power: 90
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by seymourjames View Post
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.
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.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.68classifieds.com/forums/v4-modules-modifications/3666-sitemap.html
Posted By For Type Date
68 Mods Sitemap Module This thread Refback 09-03-2008 12:07 AM


All times are GMT -4. The time now is 05:41 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22