Welcome Guest, Not a member yet? Register   Sign In
404 on complex url after CI upgrade to 2
#1

[eluser]regcoll[/eluser]
Hi,

In one place my app has a complex URL that looks like:
http://server/index.php/cont/func/<card><c%20uid%3D"1"/></card>

It worked before but after upgrading to CI 2 it stopped working and I get "404 Page Not Found" error.

If I call http://server/index.php/cont/func it works ok.

The error I'm getting in the log file is
ERROR - 2012-03-06 14:56:22 --&gt; 404 Page Not Found --&gt; <card><c%20uid%3D"1"/></card>

I've tried different $config['uri_protocol'] values without any luck.
What else can I try?

Thanks
#2

[eluser]Aken[/eluser]
Did you update/check your routes file?
#3

[eluser]regcoll[/eluser]
[quote author="Aken" date="1331008997"]Did you update/check your routes file?[/quote]

Not sure what you mean..
My other pages work, same page without third segment works fine too.
#4

[eluser]Aken[/eluser]
I really can't make it more simple than that. I suggest you read the user guide and learn more about how CI URLs and routing work.
#5

[eluser]regcoll[/eluser]
I guess you're talking about http://ellislab.com/codeigniter/user-gui...uting.html

In my case I use
http://server/index.php/cont/func
where "cont" is controller and "func" is a function and the routing works great

But when I want to pass a complex parameter in the next segment (urlencoded xml that looks like <card>) and my URL looks like
http://server/index.php/cont/func/<card>

then the entire page doesn't work with error
ERROR --&gt; 404 Page Not Found --&gt; <card>

It worked in CI 1.7 but doesn't work in CI 2.1




Theme © iAndrew 2016 - Forum software by © MyBB