| Author |
Message |
dijares
Joined: 11 Nov 2006 Posts: 40
|
|
Issues with RSS feed and Google |
|
Normally Google pulls quite a few of my articles, but lately I've noticed that there have been less and less. I did some research, and here's what they have to say about the URLs:
http://www.google.com/support/news_pub/bin/answer.py?answer=4584&topic=8871
 |  | What if my site has fewer than three numbers in each article URL?
In order to have your articles crawled by Google News, each article URL must contain a number consisting of at least three digits. For example, our news crawler can't crawl an article with this URL: http://www.google.com/news/article23.html. It can, however, crawl an article with this URL: http://www.google.com/news/article234.html
Please note that if the only digits in your article URL resemble a year (e.g. "1999" or "2006"), our system may not be able to crawl your content.
If you're able to restructure each of your URLs to include a number consisting of at least three digits, Google News should automatically begin indexing your content within a few days. |
So, is it possible to restructure the URLs?
For instance, for this url:
http://harrypotterspage.com/news.php/2007/04/20/see-the-trio-next-to-the-hogwart-s-express-in-ootp.html
Can I some how make it so each URL had three numbers before the .html?
I don't know if perhaps I can change my news.php file name, but that would probably screw up a lot of my other files, so I'd rather not touch that. Any suggestions?
Thanks!
|
|
| Sat Apr 21, 2007 3:33 am |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
dijares
Joined: 11 Nov 2006 Posts: 40
|
|
Any ideas? |
|
Do you have any ideas on this? Thanks.
Do you think I can fix this in my user friendly URLs section.. for instance... add in 123 or something? Like this:
 |  | post = "{year}/{month}/{day}/{title}123.html" |
Or will that screw up everything?
Thanks.
edit...
Okay, tried that, and it didn't make a difference. Didn't change the URL. Sigh. Please, does anyone have any ideas?
|
|
| Mon Apr 23, 2007 11:11 am |
|
 |
Ramon
Joined: 12 Oct 2005 Posts: 462 Location: Hoogeveen, NL |
|
|
|
That'll do 
_________________
 |
|
| Mon Apr 23, 2007 11:51 am |
|
 |
dijares
Joined: 11 Nov 2006 Posts: 40
|
|
|
| Mon Apr 23, 2007 1:05 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2635 Location: Germany |
|
Re: Any ideas? |
|
 |  | Okay, tried that, and it didn't make a difference. Didn't change the URL. Sigh. Please, does anyone have any ideas? |
Clear cache and it'll work.
|
|
| Mon Apr 23, 2007 2:15 pm |
|
 |
dijares
Joined: 11 Nov 2006 Posts: 40
|
|
|
|
Thanks, FI-DD. Unfortunately it didn't work (err). I had done something funny some time ago to my cache stuff because I was having problems with my cutenews.ru files loading slowly, so I don't know if this is why it didn't work.
|
|
| Mon Apr 23, 2007 3:57 pm |
|
 |
dijares
Joined: 11 Nov 2006 Posts: 40
|
|
Got it! |
|
Okay, I finally got it. I had to make sure each instance had the 123 added to the end. Here's my code for anyone who needs to find out how to do it.
 |  | [home]
post = "{year}/{month}/{day}/{title}123.html"
dosearch = "search{add:do=search}"
doarchives = "archives{add:do=archives}"
dousers = "users{add:do=users}"
user = "users/{user:do=users}.html"
day = "{year}/{month}/{day}"
month = "{year}/{month}"
year = "{year}"
docategory = "category{add:do=category}"
category = "category/{categories}"
[/news.php]
post = "{year}/{month}/{day}/{title}123.html"
[rss]
post = "{year}/{month}/{day}/{title}123.xml"
category = "category/{categories}/rss.xml"
user = "users/{user}.xml"
feed = "rss.xml"
[print]
post = "{year}/{month}/{day}/{title}123.phtml"
[trackback]
post = "{year}/{month}/{day}/{title}123.tb" |
Then make sure to clear cache. Test it in a test posting to make sure it works.
Thanks so much, FI-DD. As always you're the best (yes, take a bow!). 
|
|
| Mon Apr 23, 2007 4:13 pm |
|
 |
dijares
Joined: 11 Nov 2006 Posts: 40
|
|
Now the images... |
|
Okay, so now I have a question about Google grabbing our avatars.
Is there a way so that, when google shows our news in their listing of news items, that they can grab the avatar we use? I thought that perhaps we can change the RSS template? what do you think?
Here's my RSS template:;
ACTIVE STORY:
 |  | <item>
<title><![CDATA[{title}]]></title>
<link>{link=home/post}</link>
<description><![CDATA[{short-story}]]></description>
<category><![CDATA[{category}]]></category>
<pubDate>{date=r}</pubDate>
</item> |
FULL STORY:
 |  | <title><![CDATA[{title}]]></title>
<link>{link=home/post}</link>
<description><![CDATA[{short-story}]]></description> |
thanks for your help!
|
|
| Wed Jun 13, 2007 6:48 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2635 Location: Germany |
|
|
|
I don't know, try to add something like this to your template:
 |  | <image>
<title><![CDATA[{title}]]></title>
<url>{avatar-url}</url>
<link>{link=home/post}</link>
</image> |
|
|
| Thu Jun 14, 2007 2:02 pm |
|
 |
dijares
Joined: 11 Nov 2006 Posts: 40
|
|
Re: Now the images... |
|
 |  | Okay, so now I have a question about Google grabbing our avatars.
Is there a way so that, when google shows our news in their listing of news items, that they can grab the avatar we use? I thought that perhaps we can change the RSS template? what do you think?
Here's my RSS template:;
ACTIVE STORY:
 |  | <item>
<title><![CDATA[{title}]]></title>
<link>{link=home/post}</link>
<description><![CDATA[{short-story}]]></description>
<category><![CDATA[{category}]]></category>
<pubDate>{date=r}</pubDate>
</item> |
FULL STORY:
 |  | <title><![CDATA[{title}]]></title>
<link>{link=home/post}</link>
<description><![CDATA[{short-story}]]></description> |
thanks for your help! |
I've finally figured this one out...
I've always loaded all of my avatars into a separate folder within my images folder on my main site. However, if I load the images into the images folder within CNR, the RSS feed grabs the images.
So, I made a new folder within the images section of CNR just for the icons and copied all my avatars here. Perhaps it works now because the folder is within the CNR folder (??) - I'm not sure, but just so others know... 
|
|
| Mon Apr 21, 2008 4:20 pm |
|
 |
nam

Joined: 23 Dec 2006 Posts: 62
|
|
|
|
I also noticed that for our articles to be included in the Google news section, the URL or each story must have 3-digit number.
So to include 123 in the URL as suggested above, many of the links to my pages on the Internet will no longer work thus I will lose many of my visitors.
For instance I've posted each of my news items on social bookmarks which will now point to a "not found" page of my site.
Dear FI-DD, do you have any solution for this problem?
|
|
| Fri May 09, 2008 12:09 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2635 Location: Germany |
|
|
|
You can add the numbers only for future news. That way the old urls will keep on working.
Open inc/functions.inc.php and change this:
 |  | return totranslit($str.(($count and $count != 1) ? ' '.$count : '')); |
to this:
 |  | return totranslit($str.(($count and $count != 1) ? ' '.$count : '')).'-12345'; |
|
|
| Thu May 15, 2008 5:23 pm |
|
 |
nam

Joined: 23 Dec 2006 Posts: 62
|
|
|
|
Thanks, great solution, it works fine.
But can't you modify it a bit so it add a random number to each article rather than adding a static number to every article?
|
|
| Fri May 16, 2008 6:11 am |
|
 |
nam

Joined: 23 Dec 2006 Posts: 62
|
|
|
|
I played with this option a bit, but a problem that I faced.
Now each time I edit any post, it automatically changes its URL and adds -12345
So if I edit an article six times the URL will change to something:
/my_latest_post_news-12345-12345-12345-12345-12345-12345-12345.html
And there is no way to edit any article wthout its URL being changed.
|
|
| Fri May 16, 2008 10:18 am |
|
 |
|