RewriteEngine on

### Register
	RewriteRule ^edgraham(/)?$ /chino-hills-articles-author?author=edgraham [NC,L]
	RewriteRule ^cyninthecity(/)?$ /chino-hills-articles-author?author=cyn [NC,L]
	RewriteRule ^wellconnectedmom(/)?$ /chino-hills-articles-author?author=WellConnectedMom [NC,L]
	RewriteRule ^keisha(/)?$ /chino-hills-articles-author?author=keisha [NC,L]
	RewriteRule ^MarquezTeam(/)?$ /chino-hills-articles-author?author=MarquezTeam [NC,L]
	RewriteRule ^free(/)?$ /free-thing [NC,L]

	### Register
		RewriteRule ^register(/)?$ /register-free.php
		RewriteRule ^register/([^/\.]+)(/)?$ /register-free.php?show=$1

	### Login
	RewriteRule ^login(/)?$ / [R]
	
	### Logout
	RewriteRule ^logout(/)?$ /logout.php
	
	### My Business Listings
	RewriteRule ^my-business-listings(/)?$ /my-business-listings.php

	### My Articles
	RewriteRule ^my-articles(/)?$ /user-articles.php
	  
	   ### edit Article
		RewriteRule ^my-articles/edit/([0-9]+)(/)?$ /user-articles-edit.php?article=$1&mode=edit

	   ### create new Article
		RewriteRule ^my-articles/new(/)?$ /user-articles-edit.php?mode=new
	
	   ### viewing by Category
		RewriteRule ^my-articles/category/([^/\.]+)(/)?$ /user-articles.php?category=$1
	   
	   ### viewing Archive
		RewriteRule ^my-articles/archive/([0-9]+)/([0-9]+)(/)?$ /user-articles.php?year=$2&month=$3

	### My Profile
	RewriteRule ^my-profile(/)?$ /user-profile.php


### New Business Listing
RewriteRule ^new-business-listing(/)?$ /update-listing.php?command=new

### Update Business Listing
RewriteRule ^update-business-listing/([0-9]+)(/)?$ /update-listing.php?command=update&listing=$1

### Update Business Listing
RewriteRule ^request-permission/([0-9]+)(/)?$ /update-listing.php?command=request&listing=$1


### BUSINESS DIRECTORY
	### Business Directory Default
	RewriteRule ^business-directory(/)?$ /chino-hills-directory.php

	### Business Directory All Categories
	RewriteRule ^business-directory/categories(/)?$ /chino-hills-directory-categories.php
	
	### Business Directory Letter
	RewriteRule ^business-directory/categories/([a-zA-Z])(/)?$ /chino-hills-directory-categories.php?letter=$1
	
	### Business Directory Category
	RewriteRule ^business-directory/([^/\.]+)-([0-9]+)(/)?$ /chino-hills-directory-categories.php?category=$2
	
	### Business Directory Category
	RewriteRule ^business-directory/([^/\.]+)-([0-9]+)/([0-9]+)?(/)?$ /chino-hills-directory-categories.php?category=$2&page=$3

### News Default
	RewriteRule ^news-articles(/)?$ /chino-hills-articles.php
	RewriteRule ^news-articles/([^/\.]+)-([0-9]+)(/)?$ /chino-hills-articles-category.php?category=$2
	RewriteRule ^news-articles-archive/([0-9]+)-([0-9]+)(/)?$ /chino-hills-articles.php?year=$1&month=$2
	RewriteRule ^news-articles-details/([^/\.]+)-([0-9]+)(/)?$ /chino-hills-articles-details.php?article=$2