I looked at some examples of htaccess configurations for sites in subdirectories and tried most of them 100% unsuccessfully.
My setup :
- using the Yii infrastructure
- htaccess at
public_html/.htaccess - located inside the catalog
public_html/mysite - index processing all queries located in
public_html/mysite/frontend/www/index.php
URL Status :
www.mysite.com working fine [ok]www.mysite.com/controller/actionshows me the homepage [wrong]www.mysite.com/mysite/frontend/www/controller/actionworks fine [wrong, the item above should work instead]
My .htaccess currently looks like this:
AddHandler application/x-httpd-php53s .php .html
Options +SymLinksIfOwnerMatch
IndexIgnore */*
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{HTTP_HOST} ^(www.)?mysite.com$
RewriteCond %{REQUEST_URI} !^/mysite/frontend/www
RewriteRule ^(.*)?$ /mysite/frontend/www/index.php [L]
I tried everything, but I have no idea why www.mysite.com/controller/action will not work :(
! !