.htaccess causing 500 errors

Discussion in 'HTML & Website Design' started by AfterHim.com, Apr 17, 2007.

  1. #1
    Hey all, I'm trying to get this figured out and keep getting errors.

    I've tried the following code in my .htaccess...could Wordpress be the problem? Is there a workaround?

    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^business-cards-free.com [nc]
    rewriterule ^(.*)$ http://www.business-cards-free.com.com/$1 [r=301,nc]
    Code (markup):
    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^business-cards-free\.com
    RewriteRule ^(.*)$ http://www.business-cards-free.com/$1 [R=permanent,L]
    Code (markup):
    Think Wordpress is the issue? Or could it be the dashes in the url?

    The full .htaccess looks like this so far:


    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    Code (markup):
    Thanks all!
     
    AfterHim.com, Apr 17, 2007 IP
  2. nabil_kadimi

    nabil_kadimi Well-Known Member

    Messages:
    1,065
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    195
    #2
    I'm not sure, I think you have infinite loops
    (haap://www.business-cards-free.com.com/$1) again and again
     
    nabil_kadimi, Apr 18, 2007 IP
  3. missdanni

    missdanni Guest

    Best Answers:
    0
    #3
    Questions:
    1. What version of WP are you using?
    2. Is your WP installed in the domains root or in a sub?

    A basic WP .htaccess in the domains root should look like this:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    Code (markup):
     
    missdanni, Apr 19, 2007 IP
  4. dirk30

    dirk30 Peon

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    your provider allow mode rewrite?
     
    dirk30, Apr 19, 2007 IP