dreampolice
Technical User
I have a url where the last character or characters has to be a number. Everything works great where the last character/s is always a number after the final / in the URL:
or
or
Sometimes a user will manually put the url in and enter a non Integer at the end of the url where it should only be a Integer:
This gives me an error message and I was hoping to create something in JavaScript to give a customized error page or redirect to a customized error page. The main thing is I dont want the Server side error message to show when someone puts in an invalid URL entry with non integer number after the last / in the urls.
Please advise how I can handle this using JavaScript?
or
or
Sometimes a user will manually put the url in and enter a non Integer at the end of the url where it should only be a Integer:
This gives me an error message and I was hoping to create something in JavaScript to give a customized error page or redirect to a customized error page. The main thing is I dont want the Server side error message to show when someone puts in an invalid URL entry with non integer number after the last / in the urls.
Please advise how I can handle this using JavaScript?