Base url in CodeIgniter HMVC lose www in secondary module - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: Base url in CodeIgniter HMVC lose www in secondary module (/showthread.php?tid=71544) |
Base url in CodeIgniter HMVC lose www in secondary module - anialamo - 08-27-2018 I have a question please... this is my project where I use CI 3x HMVC in Linux hosting I have an error: Code: .htaccess is this: Code: Options +FollowSymlinks Run code snippet Expand snippet In my file config.php I have this line: Code: $config['base_url'] = 'https://www.myserver.com/'; When I load Code: https://www.myserver.com/ in the main "module" (front) I see in all my forms that all have this format: Code: <form action="https://www.myserver.com/controllerxxxx" action="post".... The problem is when I load the Code: https://www.myserver.com/admin module.... I see in all my forms thar have this formar.... The difference is in "ADMIN" that my base_url is Code: https://myserver.com/ Without WWW. What is wrong? Can you help me please? I need to solve this problem and keep my URL server with WWW in Front and Admin modules. Recently I have changed my Htaccess by this code: Code: <IfModule mod_rewrite.c> Thanks! Ani RE: Base url in CodeIgniter HMVC lose www in secondary module - InsiteFX - 08-28-2018 Your redirecting to http not https. Code: <IfModule mod_rewrite.c> Finally, be consistent with the www subdomain in all links (either use it always or never). |