Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2008-03-07, 09:42 AM   #1
HowlingWulf
Me fail English? That's unpossible!
 
HowlingWulf's Avatar
 
Join Date: Dec 2003
Location: FL
Posts: 1,381
Send a message via ICQ to HowlingWulf
.htaccess RewriteRule question

I have a script that uses an arg to grab a picture in the form
http://www.mydomain.com/?picid=10

I'd like to use .htaccess to be able to use
http://www.mydomain.com/pic10/

I have
RewriteRule ^pic(.+)/$ /?picid=$1
which sort of works in that it loads the script with the proper arg

however the problem is the script loads .css files and other images in a relative path, so I'm seeing this in the logs:
/pic10/images/something.jpg
instead of
/images/something.jpg

Is there a second Rewrite Rule I could use to fix this? I've tried
RewriteRule ^pic.+/(.+)$ /$1
but no luck.
__________________
WordPress Porn directory theme => Maddos
Create a Porn Tube => Video Pornster
HowlingWulf is offline   Reply With Quote
Old 2008-03-12, 01:15 PM   #2
nicedreams
Internet! Is that thing still around?
 
Join Date: Apr 2007
Posts: 6
Send a message via ICQ to nicedreams
Why don't you just fix your paths and make them relative to your root if you got the rewrite rule working?


Jimmy
__________________

Nice Dreams Entertainment, Inc.
nicedreams is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:31 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc