Double slashes after controller in url |
[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.
[eluser]rogierb[/eluser]
Check if you have a extra slash in your base_url config.
[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
[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.
[eluser]keshavkuruva[/eluser]
Hi rogierb, Its working now. I changed this $config['index_page'] = " "; to this $config['index_page'] = ""; Regards, Keshav.
|
Welcome Guest, Not a member yet? Register Sign In |