Welcome Guest, Not a member yet? Register   Sign In
Weird parameters added randomly to the URL eg. ?e9c5b9b8
#1

[eluser]kijla[/eluser]
Hi all, I'm having trouble with Codeigniter and I don't know if it's a bug or not. For some reason, I keep getting parameters with random alphanumeric characters added to the end of my URLs! The occurrence of these parameters is also random (i.e. some times they come up some times they don't). For example when browsing to http://www.domain.com/example the URL in the browser changes to http://www.domain.com/example?e9c5b9b8 and the page loads.

This is a problem for me because 1. it clutters up the URL for no reason, and 2. worst of all, with reactor 2.0 the page doesn't load with such a parameter added at the end since GET parameters are disabled [default setting].

To be honest I never saw this on my local development environment - problem only started to show on my hosting server, could it be that the server is adding these parameters?

I recently upgraded to reactor 2.0.2 and the problem still persists however it seems that the page loads now even with the parameters added. I am currently hosting on a Godaddy Server with modrewite on to hide the index.php part in the URL.

Does anyone know what the problem may be?

Thanks in advance! :-)

kijla
#2

[eluser]InsiteFX[/eluser]
Check your settings in application/config/config.php that is a query string doing that!

InsiteFX
#3

[eluser]kijla[/eluser]
Hey, thanks for your reply and sorry for the delayed reply on my end!

I had a look at my query string settings and they seem to be disabled:

Code:
$config['allow_get_array'] = TRUE;
$config['enable_query_strings'] = FALSE;
$config['controller_trigger']    = 'c';
$config['function_trigger']        = 'm';
$config['directory_trigger']    = 'd'; // experimental not currently in use

The settings are correct right?

Any ideas what else it can be?

Thanks again
#4

[eluser]InsiteFX[/eluser]
Are you using an .htaccess file? The problem could be in it.

Some times you need to remove or add a ? mark to the front of the /$1 so it would look like this ?/$1

InsiteFX
#5

[eluser]kijla[/eluser]
Hey InsiteFX, thanks for your reply again.

This is the .htaccess file i'm using (i found it in these forums as the best option for godaddy hosting)

Code:
# Options
Options -Multiviews
Options +FollowSymLinks

#Enable mod rewrite
RewriteEngine On
#the location of the root of your site
#if writing for subdirectories, you would enter /subdirectory
RewriteBase /

#Removes access to CodeIgniter system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

#This last condition enables access to the images and css
#folders, and the robots.txt file
RewriteCond $1 !^(index\.php|images|robots\.txt|css)

RewriteRule ^(.*)$ index.php?/$1 [L]

Seems to have that ? in front already so i tried removing it but as soon as I did the urls stopped working and I got a "no input file specified" error
#6

[eluser]InsiteFX[/eluser]
Try removing the ? mark off of both of these
Code:
RewriteRule ^(.*)$ index.php?/$1 [L]

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB