GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   htaccess expert (https://gfy.com/showthread.php?t=333438)

slapass 07-29-2004 07:58 PM

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

raymor 07-29-2004 10:33 PM

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.

eskimoen 07-30-2004 05:58 AM

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...

eskimoen 07-30-2004 06:02 AM

http://www.htaccesstools.com/board/viewtopic.php?p=2

:)

TheMob 07-30-2004 06:13 AM

Is there a customisable script that does that?

slapass 07-31-2004 07:27 AM

Ray i sent email to you. Anyone else?

Eskimoen, it did not work.


All times are GMT -7. The time now is 06:08 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123