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 07-29-2004, 07:58 PM   #1
slapass
Too lazy to set a custom title
 
Join Date: Nov 2002
Location: Earth
Posts: 14,622
htaccess expert

I have a gallery script that makes links that look like this:

http://www.DOMAIN.COM/galleries/inde...SEXYPHOTO1.jpg

I need a htaccess script so they look like this:

http://www.DOMAIN.COM/galleries/NICHE/SEXYPHOTO1.jpg

I have a htaccess script that does just that for a different gallery script I have so I know it is doable. It is worth $200 to me.

ICQ 166708909
slapass is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-29-2004, 10:33 PM   #2
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Well the .htaccess is only half of the equation, that translates
incoming requests to something that the script can understand.
You still need to translate the links that the script creates
into the format that you wish them to have in the pages.
In other words, the browser and the script talking is like a
Frenchman and a German talking and you're the translator -
you have to translate from German to French AND from
French to German.

When they click the link the .htaccess translates this:
http://www.DOMAIN.COM/galleries/NICHE/SEXYPHOTO1.jpg
to this:
http://www.domain.com/galleries/inde...SEXYPHOTO1.jpg
so that the script gets URLs that it understands.

You still need to tanslate the other way to.
If you have a dedicated server running Apache 2.x
I have th script for you. It's been in production
use for a while so any major bugs should have
been found and fixed by now. If you're on shared
hosting or Apache 1.3x there are other alternatives,
such as modifiying the script a bit.
__________________
For historical display only. This information is not current:
support@bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroids
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-30-2004, 05:58 AM   #3
eskimoen
Confirmed User
 
Join Date: May 2001
Location: Denmark
Posts: 146
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-F
RewriteRule ^/galleries/([^/]+)/(.+\.jpg)$ /galleries/index.php?currDir=./$1&pageType=image&image=$2 [NC,L]

Not testet...

Should rewrite http://www.domain.com/galleries/NICHE/SEXYPHOTO1.jpg to http://www.domain.com/galleries/inde...SEXYPHOTO1.jpg


Edit: LOL, of course GFY fucks up the code...
__________________
Click here to catch hitbots!!


Last edited by eskimoen; 07-30-2004 at 05:59 AM..
eskimoen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-30-2004, 06:02 AM   #4
eskimoen
Confirmed User
 
Join Date: May 2001
Location: Denmark
Posts: 146
http://www.htaccesstools.com/board/viewtopic.php?p=2

__________________
Click here to catch hitbots!!

eskimoen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-30-2004, 06:13 AM   #5
TheMob
Confirmed User
 
Join Date: Jan 2003
Location: 2006
Posts: 8,584
Is there a customisable script that does that?
TheMob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-31-2004, 07:27 AM   #6
slapass
Too lazy to set a custom title
 
Join Date: Nov 2002
Location: Earth
Posts: 14,622
Ray i sent email to you. Anyone else?

Eskimoen, it did not work.
slapass 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.