Redirect issues - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Redirect issues (/showthread.php?tid=73571) |
Redirect issues - Mekaboo - 05-09-2019 Hello again! Im tryting to redirect one page to another but having a hard time. I added the controller/function in HEADER field and hit submit but keep getting a 404 error and in url space this is what appears: http://culturedkink.com/index.html. Im trying to figure out why index.html show up? Here is the php code for the page: Code: <?php ** EDITED TO USE BBCODE SO IT DOESN'T RUN ON** Im trying to figure why html comes up and not php. Do I create another controller or make changes to another file. BTW register/log is controller and function. , Mekaboo RE: Redirect issues - php_rocs - 05-10-2019 @Mekaboo, Why don't you just do a straight redirect ( https://www.codeigniter.com/user_guide/helpers/url_helper.html#redirect ). That seems like it would be easier. RE: Redirect issues - Wouter60 - 05-10-2019 What kind of file is the code you posted here? Model, controller, view??? I think you are (still) missing the basics about CodeIgniter. Your code only shows procedural code, where CodeIgniter is object oriented, and works with classes. Your php file doesn't contain any class. CodeIgniter will process all URL's through index.php and never points to html files. RE: Redirect issues - Mekaboo - 05-10-2019 (05-10-2019, 06:39 AM)php_rocs Wrote: @Mekaboo, Ill try this, Thanks RE: Redirect issues - Mekaboo - 05-10-2019 (05-10-2019, 10:30 AM)Wouter60 Wrote: What kind of file is the code you posted here? Model, controller, view??? I think you are (still) missing the basics about CodeIgniter. Sorry about that! Its for a view, I copied code from github and added to mine. RE: Redirect issues - InsiteFX - 05-11-2019 PHP Code: // chage this to below Try that RE: Redirect issues - Mekaboo - 05-12-2019 (05-11-2019, 08:26 AM)InsiteFX Wrote: Thank you so very much I got it now I took the code from here: https://www.codeigniter.com/user_guide/libraries/form_validation.html I was missing the form validation |