Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-30-2006, 06:03 AM   #1
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
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.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-30-2006, 06:06 AM   #2
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
I can spend all day trying to get a mod_rewrite regex working, so here's just a quick guess:

instead of:
^media/([0-9]+)/([^/]+)\/*$ media.php?id=$1&view=media

did you try:
^media/([0-9]+)/([^/]+)\/*$ media.php?id=$2&view=media

matching against "$2". I think $1 is the first match, which is the entire expression, but I could be wrong. Also, have you tried tailing the logs and the mod_rewrite log files for help ?
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.