Problem Clean url

I already practice the way of these post : clean url

I’ve also enabled rewrite module (attached file attachment).

this my code:




'urlManager'=>array(

        	'urlFormat'=>'path',

            'showScriptName'=>false,

            'caseSensitive'=>false,        	

        ),



.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




this normal url:

and error when open with this url:

please help with this case. thank you

could you tell what the error is? what error do you get?? a 404 not found?? in Yii??? or via the web server’s 404 not found??

yes

On some installations you need


RewriteRule ^.*$ index.php

or


RewriteRule ^(.*)$ index.php/$1 [L]

And if you use apache Alias you need to add


RewriteBase /myProject

and this portion in “sites-available” directory: (I’m talking about Linux, maybe there are differences in Windows)


	Alias /myProject /home/user/sites/myProject


	<Directory /home/user/sites/myProject>

		Options Indexes FollowSymLinks MultiViews

		AllowOverride All

		Order allow,deny

		allow from all

	</Directory>

it’s also useful if you copy & paste here the output in web server log, for example


tail -f /var/log/apache2/error.log

Try to change .htaccess:

RewriteEngine on

RewriteBase /yii/demos/blog/

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 has been try, but get error:

problem has been resolved and I am trying to make the article:

My link

thank you for all