Screwed Up my .htaccess Code....what can i do

3 replies
Hey everyone,

I am running a WP Blog....and screwed up the .htaccess

internal 500 error

Where can I get the standard code? Does anyone have it that
i can copy and paste?

Suggestions

Thanks

Sean
#codewhat #htaccess #screwed
  • Profile picture of the author Steven Wagenheim
    Sean, here is the default for my WP Blog, leaving out of course the actual
    site name.

    AuthName "Restricted Area"
    AuthUserFile "/home/username/.htpasswds/public_html/foldername/passwd"

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /foldername/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /foldername/index.php [L]
    </IfModule>

    # END WordPress
    {{ DiscussionBoard.errors[365511].message }}
    • Profile picture of the author Sean A McAlister
      Hey Steven,

      I really appreciate it...so do I need to put the name of my blog in where you
      have Restricted?
      Signature
      New Product Launches, Affiliate Marketplace

      Need More Sales? More Affiliates? LaunchBoards.com
      {{ DiscussionBoard.errors[365517].message }}
      • Profile picture of the author Sean A McAlister
        Steven....YOU ROCK MAN! THANKS!


        I am Back Up! This Forum KICKS ASSSSSSSSSSSSSSSSSSSSSS!
        Signature
        New Product Launches, Affiliate Marketplace

        Need More Sales? More Affiliates? LaunchBoards.com
        {{ DiscussionBoard.errors[365521].message }}
      • Profile picture of the author Steven Wagenheim
        Originally Posted by The IM Reporter View Post

        Hey Steven,

        I really appreciate it...so do I need to put the name of my blog in where you
        have Restricted?
        Sean the only things I changed are the things you see in bold here:

        AuthName "Restricted Area"
        AuthUserFile "/home/username/.htpasswds/public_html/foldername/passwd"

        # BEGIN WordPress
        <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /foldername/
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . /foldername/index.php [L]
        </IfModule>

        # END WordPress
        {{ DiscussionBoard.errors[365523].message }}
  • Profile picture of the author Jared Alberghini
    Sean, you don't need the top two lines, that's for a password protected area that Steven has setup.

    AuthName "Restricted Area"
    AuthUserFile "/home/username/.htpasswds/public_html/foldername/passwd"

    - Jared
    Signature

    P.S.

    Join The Future: Telekinetic Marketing

    {{ DiscussionBoard.errors[365526].message }}

Trending Topics