I grabbed this turnkey directory script that i am fixing up and i am good with fixing the php and sql bugs but i am not familiar with htaccess rewrites.
Some of my listings are normal like "Eat Place" and others are "Joe's Eat Place" and I am not sure how to get rid of the apostrophe(s).
Free help is great but I would be glad to shoot a $10 spot for a hand.
Code:
ErrorDocument 404 /404err.php
Options +FollowSymlinks
#php_value magic_quotes_gpc off
RewriteEngine on
RewriteRule ^FCKeditor/(.*) FCKeditor/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteBase /
RewriteRule ^search/(.*)$ search_results.php?key=$1&keyword=$2 [L]
RewriteRule ^browse/(.*)$ search_results.php?key=$1&type=tags [L]
RewriteRule ^place/(.*)$ search_results.php?keyword=$1 [L]
RewriteRule ^user/(.*)/tags/(.*)/from/(.*)$ profile.php?user_id=$1&tags=$2&from=$3 [L]
RewriteRule ^user/(.*)$ profile.php?user_id=$1 [L]
RewriteRule ^(.*).html$ listings.php?catname=$1 [L]
RewriteRule ^(.*)/(.*)/(.*).htm$ listing_details.php?bname=$3 [L]
RewriteRule ^(.*)/(.*)/(.*)/(.*).htm$ listing_details.php?bname=$4 [L]
RewriteRule ^(.*)/(.*)/(.*).htm$ listing_details.php?bname=$3 [L]
RewriteRule ^(.*)/(.*).htm$ listing_details.php?bname=$2 [L]
RewriteRule ^(.*).htm$ listing_details.php?bname=$1 [L]
__________________
visit my link...um...nevermind
Last edited by pappasaa; 09-24-2012 at 10:05 PM..
|