WordPress.org

Ready to get started?Download WordPress

Forums

Help! Site Down After Deleting htaccess (9 posts)

  1. johnywhy
    Member
    Posted 4 years ago #

    help!

    1. this is a fresh WP 1.8.6 install. was working perfectly.
    2. i uploaded a file called "htaccess", containing the following
    3. # PHP 5
      AddType x-mapp-php5 .php
      # END PHP 5
    4. then i renamed it ".htaccess"
    5. then i deleted it
    6. now my wordpress pages (all except the homepage) will not load. i'm getting:
      • "Oops! This link appears to be broken."
      • or

      • "The requested URL was not found on this server."
    7. i can see all my pages in the WP dashboard are still there.

    using wp 2.8.6

  2. johnywhy
    Member
    Posted 4 years ago #

    Note, as far I as know, this was not a site which required htaccess.

  3. photomill
    Member
    Posted 4 years ago #

    I used to use 1&1 and would run into the same exact issue. The only way I was able to get it fixed was to back up the directory and re-create it. I'm sure there's a better way but that worked for me.

  4. johnywhy
    Member
    Posted 4 years ago #

    i'm not on 1and1, but it is a shared host (justhost, recommended by wordpress.org)

    the following comes from the WordPress error_log:

    [21-Nov-2009 00:07:03] WordPress database error Query was empty for query made by require_once, do_action, call_user_func_array, postie_loadjs_options_page, require_once, UpdatePostieConfig, WriteConfig
    [21-Nov-2009 01:16:42] PHP Fatal error: Cannot redeclare maybe_create_table() (previously declared in /home/alexan48/public_html/celebrity/wp-content/plugins/postie/postie-functions.php:2061) in /home/alexan48/public_html/celebrity/wp-admin/includes/upgrade.php on line 1009
    [21-Nov-2009 01:16:42] PHP Fatal error: Cannot redeclare maybe_create_table() (previously declared in /home/alexan48/public_html/celebrity/wp-content/plugins/postie/postie-functions.php:2061) in /home/alexan48/public_html/celebrity/wp-admin/includes/upgrade.php on line 1009
    [21-Nov-2009 01:17:07] PHP Fatal error: Cannot redeclare maybe_create_table() (previously declared in /home/alexan48/public_html/celebrity/wp-content/plugins/postie/postie-functions.php:2061) in /home/alexan48/public_html/celebrity/wp-admin/includes/upgrade.php on line 1009
    [22-Nov-2009 17:57:02] WordPress database error Query was empty for query made by require_once, do_action, call_user_func_array, postie_loadjs_options_page, require_once, UpdatePostieConfig, WriteConfig
    [22-Nov-2009 18:04:33] WordPress database error Query was empty for query made by require_once, do_action, call_user_func_array, postie_loadjs_options_page, require_once, UpdatePostieConfig, WriteConfig
    [22-Nov-2009 22:01:29] PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/alexan48/public_html/celebrity/wp-content/plugins/wp2blosxom/wp2blosxom.php on line 164

  5. johnywhy
    Member
    Posted 4 years ago #

    Resolved:

    this wordpress actually is dependent on the following htaccess:

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

    i'm not sure if this is created by my host in their one-click installer, but i do not see it in the wordpress 1.8.6 download.

    fortunately, i had a recent installation to compare to the bad one, and found the htaccess there.

    site is back up. yay.

  6. johnywhy
    Member
    Posted 4 years ago #

    i spoke too soon. the site came back for a minute, and now it's down again.

    i noticed if i change my permalinks to "default", all pages load. except hidden, and password-protected pages. those still don't load.

    the following permalink worked no problem before the htaccess change.
    /%category%/%postname%/

  7. johnywhy
    Member
    Posted 4 years ago #

    well this is weird, i changed the permalinks to "default", and then back to '/%category%/%postname%/'. now pages are loading ok.

    except for pages created with TDO Miniforms.

    somehow, removing and re-adding the htaccess has wreaked havoc on my permalinks.

  8. daecrist
    Member
    Posted 4 years ago #

    Thanks for mentioning this fix! I just completely borked my site messing with the .htaccess and switching the Permalinks to Default and then back to Custom worked like a charm un-breaking everything.

  9. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    switching the Permalinks to Default and then back to Custom worked like a charm un-breaking everything

    that's how you reset permalinks, it can fix a lot of problems people have!

Topic Closed

This topic has been closed to new replies.

About this Topic