.htaccess error!!!
Posted: 02. January 2015 10:30
http://stackoverflow.com/questions/27736282/yii-application-works-fine-on-localhost-but-throws-not-found-error-on-godaddy/27737198#27737198
Application works fine on my local machine but throws a 404 not found error when I hosted it on a live server!!!
My .htacess file contents are as below
I recieve the following error
Additional links are here : http://www.yiiframework.com/forum/index.php/topic/60754-url-management-and-htaccess/
Application works fine on my local machine but throws a 404 not found error when I hosted it on a live server!!!
My .htacess file contents are as below
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule ^([a-zA-Z0-9\-]+)$ index.php?page=$1 [L,NC]
I recieve the following error
Not Found
The requested URL /website/Search_Best_Boat_Deals was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Additional links are here : http://www.yiiframework.com/forum/index.php/topic/60754-url-management-and-htaccess/