Forum Moderators: phranque
I also use wordpress and its hard to call wordpress' js content from another place.
So i come up with a silly idea that cheating the browser.
I dont know maybe this makes no sense.
When page asks for a file from wp-includes/js
could it redirect it through a subdomain which has got the same files inside. Could it be possible? If yes, how?
Or how can i make this happen in another way.
Thanks a lot
K
It's not clear why you might want to remotely host the images and scripts, but if the goal is to improve performance, then using redirects may defeat that goal.
You might be able to proxy these image and script requests through the main server to the remote server, avoiding the client redirect. This also has side effects in performance and logging.
If you are hosted on Apache 2.x, you might be able to create an output filter to change WP's links on-the-fly.
In order to give informed recommendations, it would be helpful to know *why* you think you need to off-load the image and script hosting.
Jim