View Single Post
Old 05-30-2006, 06:03 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,571
mod rewrite help (code)

on one of my sites, i am trying to figure out why its not working.

www.dailybs.com

here is an example of a media

http://www.dailybs.com/media/1/chicken-chowmein/

which doesnt work but

http://www.dailybs.com/media.php?id=1 does

any help is grateful


here is the mod rewrite code

RewriteEngine on
RewriteBase /
RewriteRule ^\.htaccess$ - [F]
RewriteRule ^trades/([0-9]+)\/*$ trades.php?id=$1
RewriteRule ^trades\/*$ trades.php
RewriteRule ^submit\/*$ submit.php
RewriteRule ^all-media/([0-9]+)\/*$ index.php?page=$1&view=media
RewriteRule ^send/([0-9]+)\/*$ send.php?id=$1
RewriteRule ^animations\/*$ index.php?cat=1&view=media
RewriteRule ^games\/*$ index.php?cat=2&view=media
RewriteRule ^videos\/*$ index.php?cat=4&view=media
RewriteRule ^pictures\/*$ index.php?cat=5&view=media
RewriteRule ^media/([0-9]+)/([^/]+)\/*$ media.php?id=$1&view=media
RewriteRule ^comments/([0-9]+)\/*$ comments.php?id=$1
RewriteRule ^rate/([0-9]+)/([1-5])\/*$ index.php?id=$1&rating=$2
RewriteRule ^contact\/*$ contact.php
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


My Cam Feeds Script / Gallery Scraper / WPXXX Theme / Free Templates
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote