Hide index.php in the url, Yii

  • Add an .htaccess file to your webroot ( project directory) eg. /var/www/yourproject/.htacess
  • Open that .htaccess file and add the following text there

  • In /protected/config/main.php at component , set:

 

 

Including js and css files in Yii

Including core js files

Including other js and css files