.htaccess problem

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

.htaccess problem

Postby AndyPSV » 30. October 2008 09:46

Hello,
I've got .htaccess file:
Code: Select all
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule  (.*) index.php

It works properly on mine and others servers, but not @ globat.com (company, which I get free account and register domain 4 free).

I writed to them and get reply:
Dear Andrzej,

Per my checking, the mod_rewrite is working on your site however your site is not configured correctly which is why it is getting errors. One cause is that your database connection is not properly configured as shown by the error above your main page. Also, your .htaccess does not appear to have a valid destination URL on your application.

Julius Briosos
Globat.com - Support Account Representative
(323) 874-9000 option 1
(877) 245-6228 option 1

On Oct 26, 2008, andypsv@gmail.com wrote:
> Customer Name: Andrzej Jeziorski
> Customer Email: andypsv@gmail.com
> Customer Domain: www.cocaincorp.com
> Server: rhodes.globat.com
> IP Address: 90.214.63.74
>
> Hello,
> could you fix mod_rewrite on my domain: cocaincorp.com; I\'ve done everything: RewriteEngine On - on my local server this condition is working and on others too. Fix it and reply when you do it. Thanks.
>
> Ex. http://www.cocaincorp.com/news/2,new_id ... ects.#news
> (check error log)


Do you know maybe, how can I fix this .htaccess file ?
Cause I haven't got any idea. Cheers.
AndyPSV
 
Posts: 1
Joined: 30. October 2008 09:45

Postby Sharley » 30. October 2008 10:32

At Globat do you have a hosting control panel like cPanel etc.?

It looks like they us what they call a Command Console and after reading their web site they really are lacking some fairly basic features and have smothered it all over with BS.

Usually in your hosting control panel you will find the log files for your domain name - hosting service is not much use without access to the log files.

Your domain's server 500 error in your error.log file will tell you exactly what's wrong.

From your site error.
More information about this error may be available in the server error log.


Does it works on XAMPP?

If it is working on other servers then there can't be much wrong with it unless there is an issue with your Globat hosting server configuration.
(X10Hosting is a full and great free hosting service).


You could try add Options +FollowSymlinks to the top of the rewrite rules like so...
Code: Select all
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule  (.*) index.php

...and the .htaccess file should go in the web root folder so it will effect all sub-folders below the root - root or as in the above RewriteBase / is where you have your site index file.

BTW, you get the error message from any link from the main index page.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 61 guests