I have a script that creates a nice 'SEO'd' looking link to an eBay image (eg: mysite.com/images/123435.jpg) and using htaccess shows the real image at thumbs.ebaystatic.com/pict/123435.jpg This is the htaccess rewrite code:
Thanks - solve an htaccess replace text issue
8
I have a script that creates a nice 'SEO'd' looking link to an eBay image (eg: mysite.com/images/123435.jpg) and using htaccess shows the real image at thumbs.ebaystatic.com/pict/123435.jpg
This is the htaccess rewrite code:
RewriteRule ^images/(.*)$ http://thumbs.ebaystatic.com/pict/$1 [R,L]
No big deal.
Except my web page still shows 123435.jpg which can readily be identified as an eBay image.
What I am doing is changing my SEO link to be: images/12Z4Z5.jpg
(easy enough to do a string replace in php to change every "3" to a "Z" - I am changing every occurrence of "3" in the image name wherever it appears)
This is where I need your help.
How do I add to or change my htaccess rewrite code to change every "Z" back to a "3" wherever it may be in a link so that the correct eBay image is retrieved?
Example: how do I do this in htaccess:
/images/12Z4Z5.jpg retrieves thumbs.ebaystatic.com/pict/123435.jpg
/images/1Z7982.jpg retrieves thumbs.ebaystatic.com/pict/137982.jpg
etc.
$20 payment made via PayPal to first person who can solve this, with me verifying it works on my website.
This is the htaccess rewrite code:
RewriteRule ^images/(.*)$ http://thumbs.ebaystatic.com/pict/$1 [R,L]
No big deal.
Except my web page still shows 123435.jpg which can readily be identified as an eBay image.
What I am doing is changing my SEO link to be: images/12Z4Z5.jpg
(easy enough to do a string replace in php to change every "3" to a "Z" - I am changing every occurrence of "3" in the image name wherever it appears)
This is where I need your help.
How do I add to or change my htaccess rewrite code to change every "Z" back to a "3" wherever it may be in a link so that the correct eBay image is retrieved?
Example: how do I do this in htaccess:
/images/12Z4Z5.jpg retrieves thumbs.ebaystatic.com/pict/123435.jpg
/images/1Z7982.jpg retrieves thumbs.ebaystatic.com/pict/137982.jpg
etc.
$20 payment made via PayPal to first person who can solve this, with me verifying it works on my website.
- webpro4hire
- KirkMcD
- [1] reply
- kindsvater
- [1] reply
- webpro4hire
Next Topics on Trending Feed
-
8