Hi,
As title, i tried to remove application folder name from my url
my current url is http://www.example.com/appblog/index.php
The file structure is as below
/www
/www/appblog
/www/yii1.1.10
in my /www i have a htaccess redirect all link to appblog as below
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule ^$ appblog/ [L]
RewriteRule (.*) appblog/$1 [L]
and another .htaccess inside /www/appblog
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
with main.php config setting as below
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName' => false,)
only http://www.example.com/index.php can work properly without the appblog, but other controller cannot, what am i did wrong here?