.htaccess error!!!

Problems with the Linux version of XAMPP, questions, comments, and anything related.

.htaccess error!!!

Postby Sachy233 » 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
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/
Sachy233
 
Posts: 1
Joined: 02. January 2015 10:26
Operating System: Mac Yosemite

Re: .htaccess error!!!

Postby Nobbie » 02. January 2015 20:10

Sachy233 wrote:My .htacess file contents are as below


So change it or whatever. Xampp does not deliver .htaccess file with such contents.
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 52 guests