Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2005
    Posts
    199
    Plugin Contributions
    0

    Default .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]

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: .htaccess causes internal server error

    Code:
    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??
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2008
    Posts
    130
    Plugin Contributions
    0

    Default Re: .htaccess causes internal server error

    is it a fasthosts server?
    <!-- just commenting -->

 

 

Similar Threads

  1. v139g Apsona ShopAdmin Causes Internal Server Error when opened
    By cahoca in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 29 Jan 2012, 03:56 AM
  2. Replies: 1
    Last Post: 13 Apr 2010, 03:58 PM
  3. Replies: 1
    Last Post: 16 Jan 2009, 01:47 PM
  4. What causes an "Internal Server Error"?
    By BALCO in forum General Questions
    Replies: 5
    Last Post: 17 Apr 2008, 02:42 PM
  5. Internal Server Error after editing .htaccess --- Argghhhh
    By chiefintegrity in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 11 Jan 2008, 07:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR