Hi could somebody please fix this issue with URI parameter that doesn't work with Small and Large Letters.
misc.php?page=test
misc.php?page=Test
misc.php?page=TEST
misc.php?page=test
misc.php?page=Test
misc.php?page=TEST
Page Manager - URI parameter
|
Hi could somebody please fix this issue with URI parameter that doesn't work with Small and Large Letters.
misc.php?page=test misc.php?page=Test misc.php?page=TEST
2014-01-13, 06:24 PM
Quote:fix this issue with URI parameter Why do you need multiple cases to be accepted? Link to the lowercase 'test' and it is settled. If you want to pretty up your links, .htaccess is the place for that.
[retired]
Thanks because most of the URLs work with lowercase and uppercase letter, the problem is when my URL is misc.php?page=Test sombody types misc.php?page=test and it doesn't work. I don't want to use .htaccess for something that suppost to be handled by the plugin. Please fix that.
Also how not to show blank page when the URL is wrong, the page suppose to return error 404 instead of showing blank page! (2014-01-13, 08:14 PM)marcus123 Wrote: Thanks because most of the URLs work with lowercase and uppercase letter All URLs (and their parameters) are case sensitive. (2014-01-13, 08:14 PM)marcus123 Wrote: the problem is when my URL is misc.php?page=Test Yes, that is a problem. So make your page key lowercase. Problem solved. (2014-01-13, 08:14 PM)marcus123 Wrote: sombody types misc.php?page=test and it doesn't work. Type? Types? Why would people be typing in the URL? Link them to the page and your worries are over. (2014-01-13, 08:14 PM)marcus123 Wrote: I don't want to use .htaccess for something that suppost to be handled by the plugin. Please fix that. I wasn't seriously suggesting that. I was making a point that if you want myforum.com/Test then fine, use Apache to pretty things up, but don't make a mountain out of a sand dune.
[retired]
2014-01-14, 03:10 PM
Thanks how to make it return error 404 when the URL is not correct in stead of showing a blank page? I really want to change this
2014-01-14, 07:59 PM
That's an issue with misc.php . . . since the URL doesn't specify an action, none is taken and then user gets the white screen.
You edit Page Manager and include an extra conditional to check if $mybb->input['page'] is set but no page exists to match the key-- in other words, either redirect or show a 404.
[retired]
2014-01-15, 10:56 AM
Buddy could you please tell me where to add this conditional I have 0 idea?
|
« Next Oldest | Next Newest »
|