Forum Moderators: phranque
I want something like
ht*p://i.example.com/13/!B(z-(QgBGk~$(KGrHgoOKkUEjlLmVks,BKeMj2GlYw~~_1.JPG
to become
ht*p://www.example.com/f/!B(z-(QgBGk~$(KGrHgoOKkUEjlLmVks,BKeMj2GlYw~~_1.JPG
and i've written
RewriteRule ^/images/f/(.*)$ ht*p://i.example.com/$1 [R,L]
The /13/ is random on the from uri so i'm not carrying it over and the "examples" are NOT the same site. For whatever reason my rule isn't working but the site host has a history of taking a few hours to update any changes to .htaccess. That being the case is the mistake mine or should I make a change, or is the rule good to go?
Thanks in advance
1) You've got ^/images in your pattern, yet the example URLs don't have "/images" in them.
2) The RewriteRule pattern will change depending on where the code is located -- in .htaccess, in httpd.conf, or within httpd.conf *and* inside a <Directory> section. In the first and last cases, the pattern should not start with a slash, because the slash won't be present in the variable examined by RewriteRule.
Oh, and which "example" is local and which is remote? Feel free to use "remote.com" and "local.com" in your posts if you like, and I can de-link them if you don't do it yourself.
Jim