开发者

Rewrite website content to load from subdomain

开发者 https://www.devze.com 2023-04-08 00:22 出处:网络
I am figuring out how to rewrite website content (images/js/css) for faster loading times. This could also fix a \"Access-Control-Allow-Origin\" error for me.

I am figuring out how to rewrite website content (images/js/css) for faster loading times.

This could also fix a "Access-Control-Allow-Origin" error for me.

Is it possible to rewrite

content/dir/file.ext

to开发者_如何学运维

http://content.domain.com/dir/file.ext


Yes it is possible.

However, if your intention is faster load times, you'd be better off changing the URLs in your code than to have Apache rewrite/redirect every request.

Given your current spec, that's the right way to do it.

0

精彩评论

暂无评论...
验证码 换一张
取 消