Removing protocol and domain from every urls

Hi,

I’m using a special config to run Kirby locally, with a proxy that routes requests to a php server or node-connect. Unfortunately, all internal links generated by Kirby point to the non-proxied version of the site.
My problem could easily be solved if there was an option to remove the protocol and domain from every urls, so that links like http://localhost:8000/blog/article could be turned into /blog/article

Is there any way to do that?
Thanks

I was having a similar problem with my local development setup but was able to fix it by configuring my reverse proxy (Pow in this case) to pass the hostname and port in the right format to my Apache installation.

A temporary fix would be to set c::set('url', '/'); in your Kirby configuration, which does exactly what you wanted.

Excellent! Thank you!

It works apart from panel.
When accessing panel Kirby redirects to http://url:8080/panel/login

Headers X-Forwarded-For, X-Forwarded-Host, X-Forwarded-Port are set in the reverse proxy.