Change domain using rewrite
Posted: Tue Apr 30, 2019 9:59 am
I'm trying to change all occurrences of:
"www.example.com/picture123.jpg"
to:
"www.example.net/picture123.jpg".
I don't need this on a specific page - it can be global, that's fine. So that when I'm on a page if there's a picture to be loaded from example.com it should be loaded from example.net instead.
I've been trying to accomplish this with the $rewrite option and this is what I have so far.
But when trying to add this filter I just get a message like this:
(42 is the line number it's added on)
Could you help me out here? What am I doing wrong?
"www.example.com/picture123.jpg"
to:
"www.example.net/picture123.jpg".
I don't need this on a specific page - it can be global, that's fine. So that when I'm on a page if there's a picture to be loaded from example.com it should be loaded from example.net instead.
I've been trying to accomplish this with the $rewrite option and this is what I have so far.
Code: Select all
||www.example.com$rewrite=www.example.net
Code: Select all
Line 42:
Could you help me out here? What am I doing wrong?