![]() |
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 |
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. |
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... |
|
Is there a customisable script that does that?
|
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