CodeIgniter Forums

Full Version: redirections in my portal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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.

El Forum

[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.

El Forum

[eluser]matiit[/eluser]
Yes but... what if there is no "de" controller and I try to visit:
/index.php/de/main

El Forum

[eluser]Damien K.[/eluser]
Try it... you should consult the Apache documentation.

El Forum

[eluser]matiit[/eluser]
No.. it work only for normal missing files...

El Forum

[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.

El Forum

[eluser]matiit[/eluser]
eh... de controller *class* is missing...