I have a kohana framework application with htaccess file like this:
- Code: Select all
# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase /
Options -Indexes
# 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]
I want to make when I access the site via subdomain, like: subdomain.domain.com, the script index.php/profile/subdomain to be executed.
Note: the subdomains don't exist in the cpanel.
Thanks in advance.