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? 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 } 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
Archived
This topic is now archived and is closed to further replies.