Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent slash at end of the URL #42

Open
roberthallatt opened this issue Jan 31, 2017 · 2 comments
Open

Prevent slash at end of the URL #42

roberthallatt opened this issue Jan 31, 2017 · 2 comments

Comments

@roberthallatt
Copy link

Hi,

How would I prevent the following from being a valid URL:

http://www.cps.local/en/about-apropos/strategic-directions/////

My template route looks like this - 'about-apropos/?([-_a-zA-Z0-9]+)'

Is there something I'm missing or could this be a bug?

Thanks,

Rob

@rsanchez
Copy link
Owner

rsanchez commented Feb 1, 2017

I think this would be best handled in your web server configuration, whether apache or nginx.

@roberthallatt
Copy link
Author

roberthallatt commented Feb 1, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants