• Resolved texasgal79

    (@texasgal79)


    Every time I load a .htaccess file into my public_html folder (with permissions set to 666) it automatically causes the site to go to “internal error 500.” I’ve read several old forums about this problem and none of the solutions I’ve tried have fixed the crash. All I’m trying to do is create pretty permalinks with the post title. This is what I’ve pasted into the .htaccess:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    dex.php [L]
    </IfModule>

    Should there be other code in the htaccess file as well? Even if I post a blank .htaccess file with 777 permissions, my site immediately goes to Internal Error 500.

    Thank you for your help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • stvwlf

    (@stvwlf)

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    dex.php [L]     <====  this line is wrong and doesn't belong here - delete it
    Thread Starter texasgal79

    (@texasgal79)

    Thank you, stvwff. I reopened the document and I incorrectly pasted the code in the first post. I actually had this in that line:

    RewriteRule ./index.php [L]

    (what WordPress’ permalink sheet said to paste into .htaccess)

    But it’s still giving me the same error 500.

    Any other solutions? :-/

    stvwlf

    (@stvwlf)

    1) try setting the file permissions to 644

    2) if that doesn’t resolve it, contact your webhost support and ask them to help you.

    Thread Starter texasgal79

    (@texasgal79)

    Nope. Neither 666 or 644 resolved it. I went round and round with them yesterday about this and they told me to go to the WordPress forums. I will try them again because after reading all the previous threads on this issue, I really think it’s something on their end.

    thanks.

    stvwlf

    (@stvwlf)

    I’d say its 80% likely its either something on their end or a setting you have somewhere that you’re not recognizing that they could help you find. There are many hosts who would help you with a problem like this – keep that in mind.

    Thread Starter texasgal79

    (@texasgal79)

    That is good to know. They are normally quite helpful, but regarding the htaccess issue, they said “Unfortunately, we do not provide coding support.” I will open a new support ticket and give them another try. Then if they don’t help this time, I’ll consider a new host. Thanks for being so informative and helpful, stvwlf!

    MickeyRoush

    (@mickeyroush)

    It’s strange that it’s throwing 500 errors using the IfModule tags. They’re there to prevent that.

    Which brings up other questions.
    What kind of server are you on?
    Does your server allow .htaccess files?

    Thread Starter texasgal79

    (@texasgal79)

    It was a dumb error on my part. I created .htaccess doc in TextEdit on a Mac which defaults to a rich text file that, when uploaded to the server, put a bunch of extra formatting code at the beginning of the file. One of the server support techs caught it. So I replaced it with a .txt doc and everything was fine. Lesson learned.

    Thank you WordPress community for being so helpful and informative!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘htaccess file causes internal error 500’ is closed to new replies.