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/