Let's suppose that I have 3 domains:
www.maindomain.com
www.otherdomain.com
www.otherdomain2.com
All of the domains point to the same root of my Kohana Framework Application.
I want when I access the maindomain.com the index.php to be executed normally.
When I access the otherdomain.com the index.php/otherdomain to be executed,
and when I access the otherdomain2.com the index.php/otherdomain2 to be executed.
This is like passing the domain names to the php script like parameters.
The current Kohana htaccess that passess all requests to the index.php file looks like this:
- Code: Select all
# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase /MyApp/
# Protect application and system files from being viewed
RewriteRule ^(application|modules|system) - [F,L]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT,L]
Thanks in advance