[SOLVED] .htaccess hide frontend_index.php and backend_index.php |
[eluser]alx_benjamin[/eluser]
Hello, I need some help writing .htaccess file to hide frontend_index.php and backend_index.php I ve setup CI for use with multiple applications. Here s the directory structure: -CodeIgniter_1.6.3 -frontend -backend -WEBROOT --frontend_index.php --backend_index.php I ve tried .htaccess to hide only front_end.php and it works. But I don t know how to configure .htaccess to hide both files. Here s my .htaccess: Code: RewriteEngine On Thank you. Alex
[eluser]narkaT[/eluser]
you'll have to chose an "directory" that you forward to your backedn_index.php: Code: RewriteCond %{REQUEST_URI} ^/backend [NC] to get rid of the "backend" in the routering process (CI would search for an controller namend "backend") you could create a route: Code: $route['backend(.*)'] = "$1"; so when the uri '/backend/controller/method' is requestst your ht access would redirect that request to your backend_index.php where CI would route that URI to 'controller/method'
[eluser]Haqqi[/eluser]
[quote author="narkaT" date="1224262739"]you'll have to chose an "directory" that you forward to your backedn_index.php: Code: RewriteCond %{REQUEST_URI} ^/backend [NC] to get rid of the "backend" in the routering process (CI would search for an controller namend "backend") you could create a route: Code: $route['backend(.*)'] = "$1"; so when the uri '/backend/controller/method' is requestst your ht access would redirect that request to your backend_index.php where CI would route that URI to 'controller/method' [/quote] it won't work with me. I have a same problem, but the difference is my main web is under subfolder. here is my structure: -ci_core (the core of CI) -mainweb (folder to be associated with index.php -mimicart (folder to be associated with indexmimi.php -index.php -indexcart.php -.htaccess all of those files and folder are located in http://localhost/mimi-creative here is my htaccess file: Code: <IfModule mod_rewrite.c> Please give me some direction... |
Welcome Guest, Not a member yet? Register Sign In |