Reputation: 35
so i have figured out the regex to achieve this i just don't know how to make it work with lighttpd.
regex that works for me in other places
(\/admin.*$)|(\/pihole.*$)
should remove everything after the 3rd /
in these 2 URL's
https://pi.hole/admin/index.html
https://pi.hole/pihole/index.html
there are no other sub directories in the root of the web server.
what i'd like to be left with is just a simple https://pi.hole
URL in the address bar of the web browser.
Upvotes: 0
Views: 131