Reverse proxy rewrite

Trying to rewrite A into B
A) https://www.example.com/wiki/doku.php/pages/some_page
B) https://www.example.com/wiki/pages/some_page

/wiki/ is a folder
/pages/some_page is a dynamic path for doku.php

Hey there. Did you happen to check out the Caddy docs before posting? This is a really easy thing to do:

example.com {
	rewrite /wiki/doku.php/pages/some_page /wiki/pages/some_page
}

If you want any help, please fill out the template as you should have in the first place…

Template

1. The problem I’m having:

2. Error messages and/or full log output:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

3. Caddy version:

4. How I installed and ran Caddy:

a. System environment:

b. Command:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

c. Service/unit/compose file:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

d. My complete Caddy config:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

5. Links to relevant resources:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.