Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter reactor with 2 slashes(/) at url!
#1

[eluser]William Rufino[/eluser]
Hi guys,

I downloaded the codeigniter reactor and now my urls all have 2 slashes before the method, anyone knows why?

example:

site_url('admin') = localhost/myapp//admin

it is llike that
localhost/myapp//admin
#2

[eluser]Cristian Gilè[/eluser]
Check the .htaccess file and the $config['index_page'] setting.

Cristian Gilè
#3

[eluser]William Rufino[/eluser]
My index_page is empty, and the .htaccess is correct, but anyways the htaccess doesnt have anything to do with the url helper Smile

and PS: my old version was the 2.0 tip
#4

[eluser]Cristian Gilè[/eluser]
I thought that there was something wrong with your .htaccess rules. I'm investigating and I have discovered that slash_item function in the core/config.php has changed. I'm not sure but it could be the reason for your error.


Cristian Gilè
#5

[eluser]Cristian Gilè[/eluser]
It seems that the if statement at line 201 in the core/Config.php is skipped and the function returns a / also when index_page setting is blank.


Cristian Gilè
#6

[eluser]Cristian Gilè[/eluser]
I have reported the bug: https://bitbucket.org/ellislab/codeignit...item-buggy

Cristian Gilè
#7

[eluser]nuclearmaker[/eluser]
same problem here
#8

[eluser]William Rufino[/eluser]
let's see if they take a look at it Smile




Theme © iAndrew 2016 - Forum software by © MyBB