SunQuest
 
       Link Trading
  Home arrow Link Trading arrow Using RSS Feeds and Mod_rewrite to add...
SEO Chat Forums  
Choosing Keywords  
Google Optimization  
Link Trading  
MSN Optimization  
Search Engine News  
Search Engine Spiders  
Search Optimization  
Web Directories  
Website Marketing  
Website Promotion  
Website Submission  
Yahoo Optimization  
SEO Tools
Adsense Calculator
AdSense Preview
Advanced Meta-Tags
Alexa Rank Tool
Check Server Headers
Class C Checker
Code to Text Ratio
CPM Calculator
Domain Age Check
Domain Typos
Future PageRank
Google Dance
Google Keywords
Google Search
Google Suggest
Google vs Yahoo
Indexed Pages
Keyword Cloud
Keyword Density
Keyword Difficulty
Keyword Optimizer
Keyword Position
Keyword Typos
Link Popularity
Link Price Calculator
Meta Analyzer
Meta Tag Generator
Multiple Link Popularity
Page Comparison
Page Size
PageRank Lookup
PageRank Search
Robots.txt Generator
ROI Calculator 
S.E. Comparison 
S.E. Keyword Position 
Site Link Analyzer 
Spider Simulator 
URL Redirect Check 
URL Rewriting 
Dedicated Servers  
Actuate Whitepapers 
VeriSign Whitepapers 
IBM® developerWorks 
Sun Developer Network 
SEO Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
LINK TRADING

Using RSS Feeds and Mod_rewrite to add Classified Listings on your Website
By: Roger Stringer
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 14
    2005-08-22

    Table of Contents:
  • Using RSS Feeds and Mod_rewrite to add Classified Listings on your Website
  • Arrays of cities and categories
  • Four functions
  • Putting it all together

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Using RSS Feeds and Mod_rewrite to add Classified Listings on your Website


    (Page 1 of 4 )

    Today we're going to discuss how to put job listings on your site using RSS feeds. You could easily adapt this script to use any type of RSS feeds, but our target for this article is Craigslist.org.

    Craigslist.org is an extremely popular classified ads site. With the RSS feeds that they make available to us, we'll be able to create our own classified section that displays various types of ads from craigslist.org. We're going to use RSS feeds and some mod_rewrite to create our site. Craigslist makes their ads available for cities all over the world, and we are going to make our listings available all over the world too.

    Our first step is to create a file called ".htaccess." This file contains our mod_rewrite rules:

      RewriteEngine on
      RewriteRule ^ads/(.*)/(.*)/ rssads.php?city=$1&cat=$2 [QSA,L]
      RewriteRule ^ads/(.*)/ rssads.php?city=$1 [QSA,L]
      RewriteRule ^ads/$ rssads.php [QSA,L]

    What this means is that, whenever someone goes to your site and types in "yoursite.com/ads/", it will take them to rssads.php.

    Next, we want to create a file called "rssads.php." This file will contain everything related to this script.

    The first line of rssads.php is the base href. This is where you will put the URL of your site.

    <base href="http://mysite.com">

    For our mod_rewrite work, this is very important, because it tells the site where it is.

    More Link Trading Articles
    More By Roger Stringer


       · Hopefully this isn't going to give away the farm, but I have a few questions...
       · Hello! there. I read the article and i want to try it but i could not set up...
       · Did you set up the .htaccess file like I said at the start of the article?
       · Yes.. I'm using the following lines on my...
       · Does your server have mod_rewrite turned on / installed?One thing to try, find...
       · I just figured out that i was doing a mistake on "rssads.php"...
       · But this clearly violates CraigsList TOS regarding aggregation/reproduction. This...
       · Using the RSS feeds from craigslist does not violate their TOS. If it does, then it...
     

    LINK TRADING ARTICLES

    - Link Trading: Good Idea, or Waste of Time?
    - Establishing Link Popularity and Increasing ...
    - Microsites for Affiliates and SEO
    - A Brave New World: the Current and Future St...
    - The Importance of Building Links
    - Link Farming: No Good Harvest
    - Networking to Build Back Links to Your Web S...
    - More Ways to Build Back Links to Your Web Si...
    - Where Do Your Back Links Lead?
    - How to Build Back Links to Your Web Site
    - A Review of Digg: Model for Social Bookmarki...
    - Use Linking to Increase Traffic
    - Using RSS Feeds and Mod_rewrite to add Class...
    - How to Steal to the Top of Google, part 2
    - Links: Frequently Asked Questions






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway