Msg#: 4542331 posted 9:19 pm on Feb 4, 2013 (gmt 0)
This is basically what I have so far, I want to redirect not to my home page but to the photo page, as seen above. It is a dynamic URL, so I need to extract the dog-IMG1234 part out of the original file request and put on the end of my photo.cgi script.
The part you want is >> RewriteCond >> QueryString
While you are there, refresh your memory on the difference between a rewrite and a redirect. (The functions, not the commands.) Or just read any half-dozen threads in this forum; it's probably more intelligible :)
The flag says rewrite (there's no R=301) but the form of the target says redirect (full protocol and hostname). The result will be a 302 redirect, which is probably the last thing you want.
Msg#: 4542331 posted 2:02 am on Feb 5, 2013 (gmt 0)
Er, yes, we understand that. We understood it the first time and the second time too. We're past that.
g1, I think berm wants something involving
--assuming you can do this with image files-- but I'm waiting for some elucidation about where the hotlinking comes in. So far the proposed RewriteRule is silent about both refers and query strings.
Then again, I've yet to work out how to serve up something with a non-image extension when an image is requested in <img src> form. Possibly it can't be done on my hosting setup, so I should stop beating my brains out over it.