double base url |
[eluser]dunken[/eluser]
Hi everyone! I have a problem with my base url. Whenever I try to click a link or button/form submit my url changes Code: sub.domain.se/sub.domain.se/news/... I just changed to hmvc if that can be a problem (don't know why it should). I can find others experienced the same problem but no solution that works for me. .htaccess Code: RewriteEngine on $config['base_url'] is as it should.. Code: echo anchor(base_url('start'), 'start'); maybe i missed something in the latest update? Edit: If I remove my domain from the config: Code: $config['base_url'] = '';
[eluser]sv3tli0[/eluser]
What url you set at: Code: $config['base_url'] = ''; I am not sure but if you put for base_url url without http:// it may cause such problem..
[eluser]CroNiX[/eluser]
It's because internally anchor(), along with some of the other URL Helpers, is using base_url(). You only pass the segments to anchor, like anchor('news/view'). See the user guide, where they aren't using base_url() in any of the examples...
[eluser]dunken[/eluser]
Yes, as in the example before that's not the problem... Code: echo anchor('start', 'start'); same problem in both form-submit and anchors.
[eluser]Unknown[/eluser]
I'm having the same problem. what was the solution?
[eluser]Unknown[/eluser]
Me too: Whenever I try to click "create new item" button on this page: http://thanhdu.net/index.php/news/create my url changes to: http://thanhdu.net/index.php/news/thanhd...ews/create What's wrong? I've followed step by step excactly from CodeIgniter User Guide Version 2.2.0. |
Welcome Guest, Not a member yet? Register Sign In |