|
|
#1 |
|
All Hands On Deck
Join Date: Mar 2008
Posts: 1,023
Rep Power: 27 ![]() |
I notice that the sitemap generator and external.php files are generating URLs for the listings like
http://www.mydomain/viewlisting.php?view=27 http://www.mydomain/viewlisting.php?view=28 etc. I am using this piece of code in the sitemap generator which probably needs modifying. $sSQL='SELECT * FROM '.PREFIX.'listings ORDER BY id DESC'; $result=$db->query($sSQL); while ($rs=$result->fetch()) { echo '<url> <loc>'.URL.'/viewlisting.php?view='.$rs['id'].'</loc> <lastmod>2008-04-18</lastmod> <priority>0.2</priority> </url>'; echo "\n"; } However, each of these URLs is being rewritten by the SEO friendly URL module for a user to something more like http://www.mydomain/listing/27/bla-bla-bla.html http://www.mydomain/listing/28/bla-bla.html So using the site as a user is fine. All renders correctly. One gets the SEO friendly URLs but the search engines are also getting the php ones from the external.php file and the sitemap generator. I wonder whether that creates an ambiguity for the search engines? Two URLs with the same information. Any ideas how to go about getting this to work in both the sitemap generator and external.php to produce SEO friendly URLs. I am sure it is relatively simple change. I have tried twiddling with the seo/mod_user.php file but cannot get it to do what I want. It seems to be something to do with relative and absolute links to the viewlistings pages. |
|
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,019
Rep Power: 116 ![]() |
Here is an updated external.php file that will be available in v4.0.2:
PHP Code:
__________________
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 | 68 @ Twitter | My Modules |
|
|
|
|
|
#3 |
|
All Hands On Deck
Join Date: Mar 2008
Posts: 1,023
Rep Power: 27 ![]() |
Thanks. You are a super chappy. I will beta it for you. I think several people will want to do this if they are spreading their feed.
|
|
|
|
|
|
#4 |
|
All Hands On Deck
Join Date: Mar 2008
Posts: 1,023
Rep Power: 27 ![]() |
Well we all look forward to 4.02.
The code works well for me. All the links are SEO friendly. Mr G eat your heart out, Suzkaw is on his way. I have to say this to the readers. I have only had 68C a few weeks but what great support they offer. I could not have asked for more. Sometimes you just fall upon the right team. |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jun 2007
Posts: 110
Rep Power: 11 ![]() |
I have the SEO mod added on my site, and I just added the sitemap mod. The SEO mod is working great, and my external.php file has the correct SEO links. My sitemap is displaying all of the php links like mysite.com/category.php?cat=forsale. I am using the updated external.php but that doesn't seem to affect the sitemap. How do I get the sitemap to work correctly with the SEO mod?
Also I noticed I don't have any of my pages (relating to pages.php) listed on the sitemap, it is only categories and listings. I'm not sure I understand the structure of the sitemap, and advice is appreciated. Thank you!
__________________
Crystal v4.0.8 Dev |
|
|
|
|
|
#6 |
|
All Hands On Deck
Join Date: Mar 2008
Posts: 1,023
Rep Power: 27 ![]() |
I cannot help you on your question (except I noticed the sitemap module does this so I do not use it). I want my site as far as google is concerned to contain only urls with html extensions. I think site maps are getting overated to be frank. Over the last two yeas I have seen little results from doing sitemaps for google. Time can be better spent on optimising the principle pages of your site.
Do you have problems with pagination and the SEO module. I still cannot get it to render seo friendly urls for category pages where there are multiple pages of listings and one can change the price order for example. Last edited by seymourjames; 06-01-2008 at 06:50 AM. Reason: forgot to copy up the external.php code given in this thread when upgrading to 4.03 |
|
|
|
|
|
#7 | |
|
Senior Member
Join Date: Jun 2007
Posts: 110
Rep Power: 11 ![]() |
Quote:
__________________
Crystal v4.0.8 Dev |
|
|
|
|
|
|
#8 |
|
All Hands On Deck
Join Date: Mar 2008
Posts: 1,023
Rep Power: 27 ![]() |
What is the url of your site.
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|