Zen Cart Logo
Forums / Installing on a Linux/Unix Server / .htaccess causes internal server error

.htaccess causes internal server error

Locked

Views: 3,265

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
5 Mar 2009, 5:28 PM
#1
dannyd avatar

dannyd

Zen Follower

Join Date:
Apr 2005
Posts:
191
Plugin Contributions:
0

.htaccess causes internal server error

Hi,

I tried using the following code in my .htaccess file which has worked in the past with another site. Whenever I use it for a particular site on the same server I get a server error.

Any idea what could be wrong to cause the error ?

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mydomain.com
RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index.php\ HTTP/
RewriteRule ^index.php$ http://www.mydomain.com/ [R=301,L]

13 Mar 2009, 6:58 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: .htaccess causes internal server error

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mydomain.com
RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.mydomain.com/ [R=301,L]

Can I assume that the above is not actually what is in your htaccess file??

13 Mar 2009, 5:30 PM
#3
yelow avatar

yelow

Zen Follower

Join Date:
Sep 2008
Posts:
115
Plugin Contributions:
0

Re: .htaccess causes internal server error

is it a fasthosts server? :unsure: