{"id":23557,"date":"2024-10-10T10:21:37","date_gmt":"2024-10-10T09:21:37","guid":{"rendered":"https:\/\/www.oderland.se\/support\/artikel\/kan-jag-anvanda-proxypass-hos-er\/"},"modified":"2026-04-09T10:44:15","modified_gmt":"2026-04-09T09:44:15","slug":"can-i-use-proxypass-on-your-services","status":"publish","type":"ht_kb","link":"https:\/\/www.oderland.se\/support\/en\/artikel\/can-i-use-proxypass-on-your-services\/","title":{"rendered":"Can I use ProxyPass on your services?"},"content":{"rendered":"\n<p>Sometimes you want to present the content of a website under a different domain, something you can use ProxyPass for example (ProxyPass is a reverse proxy available on our servers).<\/p>\n\n\n\n<p>On our servers, this can be done via the .htaccess file that you put in the root of your domain (the one that should appear in the browser&#8217;s address bar). Add content such as the following to the file to activate the proxy function:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">RewriteRule ^(.*)$ http:\/\/www.oderland-demo.se\/$1 [P,E=Proxy-Host:www.oderland-demo.se]<\/pre>\n\n\n\n<p>Make sure that the domain is written in the same way both times it appears in the file as shown in the example above. Replace www.oderland-demo.se with the domain\/URL you want to fetch for the proxy page. If you want to present a sub-page of an existing page on a new domain, this works fine:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">RewriteRule ^(.*)$ http:\/\/www.oderland-demo.se\/sub-page\/$1 [P,E=Proxy-Host:www.oderland-demo.se]<\/pre>\n\n\n\n<p>Replace www.oderland-demo.se\/sub-page with the address of your current site (which should be visible on your own domain) and replace www.oderland-demo.se with the domain of your current site.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">Keep in mind that a proxy does not rewrite any data on the page you are fetching, so links on the page will replace the address in the browser&#8217;s address bar if they are entered as absolute. If you use relative links, it will work as intended on your own domain.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you want to present the content of a website under a different domain, something you can use ProxyPass for example (ProxyPass is a reverse proxy available on our servers). On our servers, this can be done via the .htaccess file that you put in the root of your domain&#8230;<\/p>\n","protected":false},"author":12,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"ht-kb-category":[209],"ht-kb-tag":[],"class_list":["post-23557","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-wordpress-websites"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.oderland.se\/support\/en\/wp-json\/wp\/v2\/ht-kb\/23557","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oderland.se\/support\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.oderland.se\/support\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.oderland.se\/support\/en\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oderland.se\/support\/en\/wp-json\/wp\/v2\/comments?post=23557"}],"version-history":[{"count":3,"href":"https:\/\/www.oderland.se\/support\/en\/wp-json\/wp\/v2\/ht-kb\/23557\/revisions"}],"predecessor-version":[{"id":25153,"href":"https:\/\/www.oderland.se\/support\/en\/wp-json\/wp\/v2\/ht-kb\/23557\/revisions\/25153"}],"wp:attachment":[{"href":"https:\/\/www.oderland.se\/support\/en\/wp-json\/wp\/v2\/media?parent=23557"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.oderland.se\/support\/en\/wp-json\/wp\/v2\/ht-kb-category?post=23557"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.oderland.se\/support\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=23557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}