![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: May 2001
Location: Denmark
Posts: 146
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Jan 2003
Location: 2006
Posts: 8,584
|
Is there a customisable script that does that?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |