Normal Url ManagerTo Hide index.phpAdd following source codes in .htaccess Note:Dont change .htaccess file inside protected Note:Create .htaccess file outside protectd folder Souce code for .htaccess
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 Output Url:http://localhost/sample/site/index
?>
Static page only?
ReplyDeleteNo, We can rewrite the every action url
ReplyDeleteI have problem if the primary key is varchar,
Deletethe problem is urlManager cannot find the true path
eg : http://xxxxx/site/in...item/update/ABC
or http://xxxxx/site/index.php/item/ABC
ABC is id (varchar)
The "id" should be integer
Delete