redirections in my portal - 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: redirections in my portal (/showthread.php?tid=22645) |
redirections in my portal - El Forum - 09-16-2009 [eluser]matiit[/eluser] I want to have redeirection on all portal to main page (when 404 error) I don't know where to put .htaccess. I didn't write this portal but i'm developing it now. redirections in my portal - El Forum - 09-18-2009 [eluser]Damien K.[/eluser] Your .htaccess file has the following: Code: ErrorDocument 404 <path_to_root_of_portal> Put your .htaccess file in the root of your portal. redirections in my portal - El Forum - 09-19-2009 [eluser]matiit[/eluser] Yes but... what if there is no "de" controller and I try to visit: /index.php/de/main redirections in my portal - El Forum - 09-19-2009 [eluser]Damien K.[/eluser] Try it... you should consult the Apache documentation. redirections in my portal - El Forum - 09-19-2009 [eluser]matiit[/eluser] No.. it work only for normal missing files... redirections in my portal - El Forum - 09-19-2009 [eluser]Damien K.[/eluser] I know the problem can be addressed with .htaccess configuration. You can do a rewrite if you have an idea of the path of missing files. redirections in my portal - El Forum - 09-19-2009 [eluser]matiit[/eluser] eh... de controller *class* is missing... |