Hello guys, I've been trying to get it to run properly for past few hours but no luck. I've tried all kind of codes I found online. So I have images.website.com and I want to redirect all content of it to images.website.org (tld change). I manged to do the homepage redirect but my original images don't redirect to .org. Image URL: http://images.website.com/images/123.png Once users load that image directly in their browser I'd like it to point to http://images.website.org/images/123.png I'm using Apache and htaccess. Thanks guys!
Does the image actually exist on website.org? Or do you just want the browser URL to show website.org?
Try adding the following lines to your .htaccess file: RewriteEngine On RewriteCond %{HTTP_HOST} ^images.website.com$ RewriteRule (.*)$ http://images.website.org/$1 [R=301,L]