httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Florian <marcel.s.flor...@googlemail.com>
Subject [users@httpd] Get parameters at the end of URL on Apache Web Server
Date Mon, 09 Nov 2015 10:24:14 GMT
Hello guys,

I have a URL with the following syntax:

https://www.domain.com/pay/a1b2c
In the /pay directory I have a simple payment form. I am using JavaScript to get the URL appendix
a1b2c and process it in order to get further data to display in the payment form:

var url = window.location.href;
var appendix = url.split("/").pop();
...
But if I open the URL in the browser, Apache says (of course):

Not Found
The requested URL /pay/a1b2c was not found on this server.
How can I solve this problem? Which Apache config do I need? 

Thank you! 

Best, Marcel
Mime
View raw message