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 Mark Forums Read
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 07-08-2004, 11:09 AM   #1
johnbosh
Confirmed User
 
Join Date: Aug 2002
Location: The Netherlands, Rotterdam
Posts: 8,965
Mod Rewrite Question

Hello!
I have an site where I use links as: http://www.domain.com/gallery.php?id=12

Now I want to let it mod rewrite that it can also be accessed by:
http://www.domain.com/gallery/12/

I heard it could be done with mod rewrite in your .htaccess, I tried many things but I don't get it to work, who can help me?
johnbosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-08-2004, 11:42 AM   #2
johnbosh
Confirmed User
 
Join Date: Aug 2002
Location: The Netherlands, Rotterdam
Posts: 8,965
bump
johnbosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-08-2004, 11:46 AM   #3
goBigtime
Confirmed User
 
Join Date: Nov 2002
Posts: 7,761
Try this rule:

RewriteRule /gallery.php?id=([0-9]+) /gallery/$1/
goBigtime is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-08-2004, 02:16 PM   #4
johnbosh
Confirmed User
 
Join Date: Aug 2002
Location: The Netherlands, Rotterdam
Posts: 8,965
Quote:
Originally posted by goBigtime
Try this rule:

RewriteRule /gallery.php?id=([0-9]+) /gallery/$1/
thx for it, but it does nothin
johnbosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-08-2004, 02:23 PM   #5
M_M
Confirmed User
 
Join Date: May 2004
Posts: 1,167
did you put:
RewriteEngine on
M_M is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-08-2004, 02:36 PM   #6
dgraf
Confirmed User
 
Join Date: Jun 2004
Posts: 133
Quote:
Originally posted by goBigtime
Try this rule:

RewriteRule /gallery.php?id=([0-9]+) /gallery/$1/
IMHO it should be -
Code:
RewriteRule /gallery/([0-9]+)/        /gallery.php?id=$1
dgraf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-08-2004, 02:40 PM   #7
Tom_PMs
Confirmed User
 
Join Date: Jun 2004
Posts: 2,049
Yeah I was just about to post that the original example looks backwards

Assuming you want people to link to your dynamic page using a simple url as you said, then flip the parts around as dgraf said..
__________________

You've read it, you can't unread it.
Tom_PMs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-08-2004, 02:56 PM   #8
johnbosh
Confirmed User
 
Join Date: Aug 2002
Location: The Netherlands, Rotterdam
Posts: 8,965
Quote:
Originally posted by M_M
did you put:
RewriteEngine on
Jup:D I try again with the post of dgraf:D
johnbosh 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
Thread Tools



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.