Support Forums

Sitemap

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


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

This topic is closed.

This topic is closed to new replies.

 
Thread Tools Display Modes
Old 04-07-2008, 11:38 AM   #11
Member
 
Join Date: Oct 2007
Posts: 60
Rep Power: 18
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
ksuralta is offline  
Old 04-07-2008, 11:45 AM   #12
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
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
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 04-08-2008, 11:35 AM   #13
Member
 
Join Date: Oct 2007
Posts: 60
Rep Power: 18
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
ksuralta is offline  
Old 04-08-2008, 05:36 PM   #14
Senior Member
 
Join Date: Oct 2006
Posts: 133
Rep Power: 23
manilaboy is on a distinguished road
Default

Quote:
Originally Posted by suzkaw
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.
manilaboy is offline  
Old 04-13-2008, 01:01 PM   #15
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,403
Rep Power: 86
seymourjames is a jewel in the rough
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
seymourjames is offline  
Old 04-14-2008, 03:24 PM   #16
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by manilaboy
Do you have this sitemap mod for V3?
http://www.68classifieds.com/forums/...hlight=sitemap
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 04-14-2008, 03:30 PM   #17
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by seymourjames
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
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

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 04-16-2008, 07:04 AM   #18
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,403
Rep Power: 86
seymourjames is a jewel in the rough
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.
seymourjames is offline  
Old 04-16-2008, 08:47 AM   #19
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,403
Rep Power: 86
seymourjames is a jewel in the rough
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
seymourjames is offline  
Old 04-16-2008, 09:26 AM   #20
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by seymourjames
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

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Closed Thread

Tags
sitemap module

Thread Tools
Display Modes



All times are GMT -4. The time now is 10:53 AM.


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