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"....
|
|||||||
![]() |
|
|
LinkBack (1) | Thread Tools | Display Modes |
|
#11
|
|||
|
|||
|
Ok, I understand now.
I updated my sitemap in Google from "sitemap.xml" to "modules.php?mod=sitemap". |
|
#12
|
||||
|
||||
|
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 |
|
#13
|
|||
|
|||
|
Thanks! I didn't know that.
This just saved me time from submitting my sitemap to Yahoo, MS, etc. |
|
#14
|
|||
|
|||
|
Do you have this sitemap mod for V3?
__________________
Mike D. |
|
#15
|
|||
|
|||
|
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 |
|
#16
|
||||
|
||||
|
__________________
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 |
|
#17
|
||||
|
||||
|
Quote:
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:
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 |
|
#18
|
|||
|
|||
|
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
|
|||
|
|||
|
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 |
|
#20
|
||||
|
||||
|
Quote:
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 |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 | |