Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4730

Fancy URL (remove .php extension)

$
0
0

I have a haproxy server and everything is working. But i just need to remove the extension from the url like that:

http://test.com/login.php?testvars=123

to

http://test.com/login?testvars=123

Before it was working over .htaccess with this code:

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*?)/?$ $1.php [L]

But since i proxy through haproxy it doesnt work anymore

Any help appreciated.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4730

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>