• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Not a bug Proxy Images Always Prepends www to Images

Snog

Well-known member
#1
When entering a site without the www prefix, proxy.php always prepends www to the image path making the image a broken image.

I believe this is done using the board url instead of a relative path.
 

Mike

XenForo developer
Staff member
#2
The proxy just takes a URL and accesses it. It doesn't do anything to change the URL.

If you're referring to the proxy.php URL itself, that is accessed via a relative link, so it's based entirely on the base tag on the page (which is based on the URL accessed).

We'll need a demonstration of the issue.
 

Mike

XenForo developer
Staff member
#4
The proxy wasn't changing anything -- it had to do with an img tag embedding a permission controlled entry and accessed via different URLs (one on the matching domain, thus bypassing the proxy, and one going through the proxy).
 

Snog

Well-known member
#5
I see what you're saying. I'll do the htaccess changes which should eliminate that problem for logged in users.