Welcome Guest, Not a member yet? Register   Sign In
mod_rewrite and controllers
#1

[eluser]adaxa[/eluser]
Hi everyone !

In controller directory I have two sub directories "main" and "back" which contain some controllers.

To access http://localhost/some_controller (some_controller is in "main" directory) I have a htaccess file with this line

RewriteRule ^(.*)$ index.php/main/$1 [L]

How to redirect queries to "back" if the URL contain word "back" ?
#2

[eluser]bronet[/eluser]
Read about URI Routing and you'll find out how can be done: http://ellislab.com/codeigniter/user-gui...uting.html




Theme © iAndrew 2016 - Forum software by © MyBB