Forum Moderators: phranque
#Options +FollowSymLinks
#Options -MultiViews
#Options All -Indexes
AddType x-mapp-php5 .php
<FilesMatch "\.(htaccess|tpl)$">
Order Allow,Deny
Deny from all
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteBase /
RewriteEngine On
RewriteCond %{HTTP_HOST} !^example\.com [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
#RewriteRule ^([a-zA-Z]+)\.html$ $1.php [L]
RewriteRule ^view\.php$ listing.php [L]
#Handle all category links. Static category text followed by ID, followed by path
#The "category" text here needs to be changed if the language variable category is changed
RewriteRule ^category\/(.+)location/(.+/)([0-9]+)\.html$ browse_categories.php?id=$1&location=$2&page=$3 [L,NC]
RewriteRule ^category\/(.+)location/(.+)$ browse_categories.php?id=$1&location=$2 [L,NC]
RewriteRule ^category\/(.+/)([0-9]+)\.html$ browse_categories.php?id=$1&page=$2 [L,NC]
RewriteRule ^category\/(.+)$ browse_categories.php?id=$1 [L,NC]
#Handle all location links. Static location text followed by ID, followed by path
#The "location" text here needs to be changed if the language variable location is changed
RewriteRule ^location\/(.+/)([0-9]+)\.html$ browse_locations.php?id=$1&page=$2 [L,NC]
RewriteRule ^location\/(.+)$ browse_locations.php?id=$1 [L,NC] [edited by: jdMorgan at 3:52 pm (utc) on Feb. 3, 2010]
[edit reason] Please use example.com. See TOS., [/edit]