My application with UrlManager enabled works fine in local wamp server. When I hosted it on Godaddy I was getting internal server error. So I removed htaccess and UrlManager code. It worked fine but without beautiful urls.
I've restored htaccess and UrlManager code. I'm getting internal server error again.
Screen Shots:
![: screen_shot_with_htaccess_urlmanager.gif]()
![: screen_shot_without_htaccess.gif]()
UrlManager Code:
----------------
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName' => false,
//'caseSensitive'=>false,
'rules'=>array(
'user/register/*'=>'user/create',
'user/settings/*'=>'user/update',
),
),
htaccess Code:
--------------
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 . index.php
I've restored htaccess and UrlManager code. I'm getting internal server error again.
Screen Shots:
UrlManager Code:
----------------
'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName' => false,
//'caseSensitive'=>false,
'rules'=>array(
'user/register/*'=>'user/create',
'user/settings/*'=>'user/update',
),
),
htaccess Code:
--------------
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 . index.php