Period changed to underscore |
[eluser]phazei[/eluser]
I added the 'QSA' but it didn't make a difference. I'll just stick with either QUERY_STRING or REQUEST_URI. Shouldn't matter I don't believe.
[eluser]Colin Williams[/eluser]
You probably don't want to use QUERY_STRING because then you rely on the query triggers and not paths. I would stick with REQUEST_URI And I'm not sure what you mean be these items "not existing." They're environment variables. They should all exist.
[eluser]phazei[/eluser]
By not exist I just meant they were empty '' if I echoed them.
[eluser]jeffpeck[/eluser]
To anybody having an issue with this, this might help. It appears that it is using the $_GET variable which you can plainly view is converting any periods to underscores. As noted here, this is the expected behavior of $_GET: http://php.net/manual/en/language.variab...ternal.php Quote:Note: Dots and spaces in variable names are converted to underscores. For example <input name="a.b" /> becomes $_REQUEST["a_b"]. To fix this, modify the config.php file: Code: /* In my case, QUERY_STRING worked. You might need to try others, or have the script print_r($_SERVER) to easily find the correct variable.
[eluser]Unknown[/eluser]
I just ran into this issue. It's pretty simple actually. If you are using friendly URLs, which you likely are, then you may go 2 routes in your .htaccess: index.php/something or index.php?/something. If you use the first, without the ?, it should work with AUTO or REQUEST_URI, if you use the second, it should work with QUERY_STRING. Personally, I wouldn't use the second, because it's in PHP's functionality to replace your dots (and more) with underscores. In my case, I was using BOTH in my htaccess, a different one for each module in HMVC. It was pretty confusing at first, haha ![]() Code: RewriteCond %{REQUEST_FILENAME} !-f One a query, the other not = problem. |
Welcome Guest, Not a member yet? Register Sign In |