Not Solved Page Manager - URI parameter
#1
Not Solved
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
Reply
#2
Not Solved
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]
Reply
#3
Not Solved
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!
Reply
#4
Not Solved
(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]
Reply
#5
Not Solved
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
Reply
#6
Not Solved
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]
Reply
#7
Not Solved
Buddy could you please tell me where to add this conditional I have 0 idea?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)