Home arrow Link Trading arrow Using RSS Feeds and Mod_rewrite to add...

TOOLS YOU CAN USE

advertisement

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

blog comments powered by Disqus

LINK TRADING ARTICLES

- When to Use Reciprocal Links
- Link Building is Relationship Building
- Eleven Link Building Tips for Headlines
- Link Building Tips and Tricks
- How to Get Quality Free Backlinks
- How Fast are You Getting Links to Your Websi...
- Organic Link Building Tips: Guest Blogging f...
- More Link Building Tips from Ivan
- Proven Link Building Strategies that Work
- Analyzing Inbound Links Using BacklinkWatch ...
- Page Quality Factors for Link Building
- Article Writing for Back-Links
- Requesting One-Way Links
- Link Building Tips From Experts
- Link Building: The Anchor Text
 
SEO Chat Forums  
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Contact Us 
Site Map 
Request Media Kit
Write For Us Get Paid 
SEO Weekly Newsletter
 
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 
Privacy Policy 
Support 


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 1 - Follow our Sitemap
Popular SEO Chat Topics
All Tutorials & Tools
 
SEO Chat is sponsored by:
Close this Sponsor Message