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 02-28-2007, 12:36 PM   #1
HomeFry
Confirmed User
 
HomeFry's Avatar
 
Join Date: Jun 2006
Posts: 1,062
.htaccess URL Rewrite

Can someone post the .htaccess code that will rewrite the following URL:
http://www.site.com/dir/dir/xxxxx

TO

http://www.site.com/dir/dir/index.php?var=xxxxx

I'm not looking to redirect, I would like the URL to stay as the first example.

Here's what I have, but for some reason it doesn't work.

Code:
 Options +FollowSymlinks
 RewriteEngine on
 RewriteRule ^dir/dir/([0-9]+)-([a-z]+) index.php?var=$1 [nc]
Any help is appreciated.

Thanks.
HomeFry is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-28-2007, 12:41 PM   #2
HomeFry
Confirmed User
 
HomeFry's Avatar
 
Join Date: Jun 2006
Posts: 1,062
Anyone??
HomeFry is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-28-2007, 01:31 PM   #3
HomeFry
Confirmed User
 
HomeFry's Avatar
 
Join Date: Jun 2006
Posts: 1,062
Anyone at all?
HomeFry is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-28-2007, 01:52 PM   #4
Brad Gosse
Confirmed User
 
Brad Gosse's Avatar
 
Join Date: Jan 2002
Location: Carpal Tunnel
Posts: 2,616
Redirect /dir/dir/xxxxx/ http://www.site.com/dir/dir/index.php?var=xxxxx
__________________
Free Clipart
Brad Gosse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-28-2007, 01:52 PM   #5
Brad Gosse
Confirmed User
 
Brad Gosse's Avatar
 
Join Date: Jan 2002
Location: Carpal Tunnel
Posts: 2,616
oops nevermind read that u don't want the redirect sorry
__________________
Free Clipart
Brad Gosse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-28-2007, 01:55 PM   #6
Damian_Maxcash
So Fucking Banned
 
Join Date: Oct 2002
Location: MaxCash.com
Posts: 12,745
I am not sure I should be giving this little gem away......

OK, I am in a good mood

http://www.mod-rewrite-wizard.com/

EDIT: oh....I read it wrong as well.... I will leave the link though.

Last edited by Damian_Maxcash; 02-28-2007 at 01:56 PM..
Damian_Maxcash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-28-2007, 02:10 PM   #7
HomeFry
Confirmed User
 
HomeFry's Avatar
 
Join Date: Jun 2006
Posts: 1,062
Quote:
Originally Posted by damian2001 View Post
I am not sure I should be giving this little gem away......

OK, I am in a good mood

http://www.mod-rewrite-wizard.com/

EDIT: oh....I read it wrong as well.... I will leave the link though.
Actually, I can use this method also. Thanks for the help / link!
HomeFry is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-28-2007, 05:31 PM   #8
BigBen
Confirmed User
 
Join Date: Nov 2004
Location: scv
Posts: 2,299
Code:
RewriteEngine on
RewriteRule ^([A-Za-z0-9-]+)/?$ index.php?var=$1 [NC,L]
Put that in /dir/dir/.htaccess
BigBen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-28-2007, 05:41 PM   #9
Briscoe
Confirmed User
 
Join Date: Mar 2003
Location: Las Vegas
Posts: 153
Shame on anyone using .htaccess and mod_rewrite. The ultimate server slow-down.
__________________
Earn up to 70% per sale and 15% on webmaster referrals
Signup for Horny Teen Cum Sluts
A CCBill and NoCreditCard partner
Briscoe 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.