gordon.c Posted December 18, 2009 Share Posted December 18, 2009 Hi, What rule stops the server from requiring each URL to end with slash? Quote Link to comment https://forums.phpfreaks.com/topic/185627-no-slash-required-at-the-end/ Share on other sites More sharing options...
corbin Posted December 18, 2009 Share Posted December 18, 2009 I think it's something just built into Apache. Something basically like (pretend filePath contains the part after the URL... For example http://somesite.com/folder/something would be folder/something): if filePath exists { if filePath is a file { handle it as a file (what ever the default for a file with no extension is) } if filePath is a directory { if any index type file exists for filePath/, serve that else serve either a directory index or a 403 } } else { 404 error } Quote Link to comment https://forums.phpfreaks.com/topic/185627-no-slash-required-at-the-end/#findComment-980279 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.