Welcome Guest, Not a member yet? Register   Sign In
Unable to parse variables in the URL
#1

[eluser]floweringmind88[/eluser]
I have my htacces setup as follows:

Options All -Indexes +FollowSymLinks
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|images|css|xml)
RewriteRule ^(.*)$ /varvee/index.php/$1 [QSA,L]

This works fine for regular paths like:
http://domain.com/varvee/browse_schools/

But if I try to pass a variable on the end it says it can't find the page:

http://domain.com/varvee/browse_schools/?school=a

If anyone can help me out I would greatly appreciate it.

Thanks!

Chris
#2

[eluser]Michael Wales[/eluser]
CodeIgniter disables query strings - it doesn't appear as if you have enabled them, since your URL would be malformed.

2 options.

1) Just use a URL segment
http://domain.com/varvee/browse_schools/a

2) Use query strings
http://domain.com?c=varvee&m=browse_schools&school=a

Check out config/config.php around line 130 for in the comments documenting this feature as well as http://ellislab.com/codeigniter/user-gui.../urls.html.




Theme © iAndrew 2016 - Forum software by © MyBB