![]() |
Routing - Form submission appends segments to my URL - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Routing - Form submission appends segments to my URL (/showthread.php?tid=46983) |
Routing - Form submission appends segments to my URL - El Forum - 11-22-2011 [eluser]1cookie[/eluser] hi I'm following along with: http://ellislab.com/codeigniter/user-guide/libraries/form_validation.html#overview only when I submit my page (and with each subsequent submit), my URL gets appended with /localhost. I start with: Code: http://localhost/CItutorials/form Code: http://localhost/CItutorials/localhost/form Code: http://localhost/CItutorials/localhost/localhost/form Code: http://localhost/CItutorials/localhost/localhost/localhost/form Ive tried tinkering with the routes.php script: Code: $route['default_controller'] = 'form'; I have a .htaccess file on the root directory enabling clean URLs: Code: RewriteEngine On Config seems fine: Code: $config['base_url'] = 'localhost/'; I'm a bit stumped! I think it is something to do with routes, but it flumaxes me? help.. ![]() |