Welcome Guest, Not a member yet? Register   Sign In
.htaccess and subdomains route
#1

[eluser]AFRC[/eluser]
Hi,

Basically i want to:

When you access domain.com it should load: domain.com/frontend
When you access userlogin.domain.com it should load: domain.com/backend/userlogin

My .htaccess is:

Code:
RewriteEngine on

RewriteCond $1 !^(index\.php|css|scripts|fonts|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]


Thanks
#2

[eluser]Caio[/eluser]
1. set the default controller to "frontend" in the config.php file.
2. the user page should be accessed only when the user logs in, right?! so, why not load that method and/or view right when the user logs in.




Theme © iAndrew 2016 - Forum software by © MyBB