HAProxy URL Rewriting with query strings (ugly URLs)


/ Published in: Apache
Save to your folder(s)

This line can be added to 'backend', 'frontend', 'listen' directives in the HAProxy config.

It will redirect all requests for /books/mysql to /books.php?title=mysql


Copy this code and paste it in your HTML
  1. reqirep ^([^\ ]*)\ /books/(.*) \1\ /books.php?title=\2

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.