Welcome Guest, Not a member yet? Register   Sign In
Double slashes after controller in url
#1

[eluser]keshavkuruva[/eluser]
Hi,

The following code in my view page <? echo form_open('home/verify');?> is redirecting to a url some thing as follows : http://localhost/application//home/verify. I am getting 2 slashes added up infront of controller. Please let me know where am I going wrong?

Thanks for the help in advance,
Kesh.
#2

[eluser]rogierb[/eluser]
Check if you have a extra slash in your base_url config.
#3

[eluser]keshavkuruva[/eluser]
Thanks for the fast reply.

My base url value in config looks as follows :

$config['base_url'] = "http://localhost/www/application/";

I still get that extra slash infront of controller i.e //home/verfiy

Regards,
Kesh
#4

[eluser]rogierb[/eluser]
That seems ok.
What does your .htaccess look like?
#5

[eluser]keshavkuruva[/eluser]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>


Regards,
Keshav.
#6

[eluser]keshavkuruva[/eluser]
Hi rogierb,

Its working now.

I changed this

$config['index_page'] = " ";

to this

$config['index_page'] = "";

Regards,
Keshav.
#7

[eluser]rogierb[/eluser]
That one is new to me:-)

Glad you figured it out.




Theme © iAndrew 2016 - Forum software by © MyBB