Hi, @chrism2671. I’m seeing identical content returned for both URLs:
$ curl -so proxied.html https://www.wikijob.co.uk/f/
$ curl -so not-proxied.html https://forum.wikijob.co.uk/
$ md5sum proxied.html not-proxied.html
e2f0ccec93908fbb4c954526321e193f proxied.html
e2f0ccec93908fbb4c954526321e193f not-proxied.html
However, the proxied page has a number of 404s for resources on the page due to how those resources are referenced (specifically because they use absolute paths instead of relative paths).
For example, I’m going to examine these two CSS files from the HTML:
$ cat proxied.html | egrep "desktop.*css"
<link href="/stylesheets/desktop_8c529eaf570fc46d537b4656831311379e69f7fa.css?__ws=forum.wikijob.co.uk" media="all" rel="stylesheet" data-target="desktop" data-theme-id="11"/>
<link href="/stylesheets/desktop_theme_11_9e5c410efbccf422b37167e99ff1e11bcd253576.css?__ws=forum.wikijob.co.uk" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="11"/>
For the proxied site, the paths above are:
https://www.wikijob.co.uk/stylesheets/desktop_8c529eaf570fc46d537b4656831311379e69f7fa.css?__ws=forum.wikijob.co.uk
https://www.wikijob.co.uk/stylesheets/desktop_theme_11_9e5c410efbccf422b37167e99ff1e11bcd253576.css?__ws=forum.wikijob.co.uk
However, the correct paths are this:
https://www.wikijob.co.uk/f/stylesheets/desktop_8c529eaf570fc46d537b4656831311379e69f7fa.css?__ws=forum.wikijob.co.uk
https://www.wikijob.co.uk/f/stylesheets/desktop_theme_11_9e5c410efbccf422b37167e99ff1e11bcd253576.css?__ws=forum.wikijob.co.uk
If the paths to the files were listed as this:
<link href="./stylesheets/desktop_8c529eaf570fc46d537b4656831311379e69f7fa.css?__ws=forum.wikijob.co.uk" media="all" rel="stylesheet" data-target="desktop" data-theme-id="11"/>
<link href="./stylesheets/desktop_theme_11_9e5c410efbccf422b37167e99ff1e11bcd253576.css?__ws=forum.wikijob.co.uk" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="11"/>
or like this:
<link href="stylesheets/desktop_8c529eaf570fc46d537b4656831311379e69f7fa.css?__ws=forum.wikijob.co.uk" media="all" rel="stylesheet" data-target="desktop" data-theme-id="11"/>
<link href="stylesheets/desktop_theme_11_9e5c410efbccf422b37167e99ff1e11bcd253576.css?__ws=forum.wikijob.co.uk" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="11"/>
then this would be treated as a relative path and the browser would request this path:
/f/stylesheets/desktop_8c529eaf570fc46d537b4656831311379e69f7fa.css?__ws=forum.wikijob.co.uk
However, because an absolute path is used the /f/
prefix directory is dropped and the URLs requested are 404s.
To summarize, your site’s HTML is designed so that it no longer works when the site is proxied to under a different “sub-directory”. The HTML of your page uses absolute paths so the referenced assets don’t exist where the HTML says they do once proxied to under /f/
. One solution for this is to use relative paths for the page assets.
If there are other questions about this, please let us know.