article

Showing posts with label Jii Framework. Show all posts
Showing posts with label Jii Framework. Show all posts

Saturday, March 15, 2014

Remove index.php in Jii Framework

Remove index.php in Jii Framework

Add .htaccess file in root directory

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

Modify url protected/config/main.php find 'urlManager'=>array( and change to this code
'urlManager'=>array(
   'urlFormat'=>'path',
   'showScriptName'=>false,
    'caseSensitive'=>false,        
  ),
Run, index.php remove

Related Post