Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

UrlManager and Godaddy trouble

$
0
0
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

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>