• I got everything working just fine. Literally the last tweak I was making was to add some stuff to .htaccess as indicated. I stupidly didn’t make a backup copy of this first. Please help.
    I have currently got it so my install is not accessible from a web browser at all. I messed up the .htaccess file while playing with the permalink re-write code that I was supposed to add. (though the instructions were less than clear to me).
    This is what my .htaccess file looks like now.

    #
    # Apache/PHP/site settings:
    #
    # Protect files and directories from prying eyes:
    order deny,allow
    deny from all
    # Deny directory listings:
    Options -Indexes
    # Customized server error messages:
    ErrorDocument 400 /error.php
    ErrorDocument 402 /error.php
    ErrorDocument 403 /error.php
    ErrorDocument 404 /error.php
    ErrorDocument 500 /error.php
    # Various rewrite rules
    RewriteEngine On
    RewriteBase /
    RewriteRule ^archives/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?category_name=$1&feed=$2 [QSA]
    RewriteRule ^archives/category/?(.*) /index.php?category_name=$1 [QSA]
    RewriteRule ^archives/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?author_name=$1&feed=$2 [QSA]
    RewriteRule ^archives/author/?(.*) /index.php?author_name=$1 [QSA]
    RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/? ([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)/ /(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)/ /trackback/?$ /wp-trackback.php?year=$1&monthnum=$2&day=$3&name=$4 [QSA]
    RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /wp-feed.php?feed=$1 [QSA]
    RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /wp-feed.php?feed=$1&withcomments=1 [QSA]
    # $Id: .htaccess,v 1.38.2.2 2002/12/08 08:19:56 dries Exp $

    What can I do?

Viewing 9 replies - 1 through 9 (of 9 total)
  • well.. first check if you actually have mod_rewrite. second, does your host use ensim cuz that requires an extra line.

    to quote podz:

    To see if you have mod_rewrite:
    PHP Info
    * Paste this into a new Notepad / BBEdit file
    * <?php infophp(); ?>
    * Save as ‘info.php’
    * Upload to server. Visit in your browser (www.example.com/info.php)
    * That will give you info about your php version and mod_rewrite.
    * It’s a long page on info, so you will need to hunt it down.

    Thread Starter Dave Kaufman

    (@dkaufman1)

    Thanks for you suggestions…
    Here’s the deal, while I can upload via ftp the info.php. With .htaccess corrupted by my unsavvy cut and paste, I am unable to use http to access anything.
    I need to fix the .htaccess file first, then I can go about dealing with the permalinks and other issues.
    So can someone help based on my .htaccess file listed above?

    I think that typo of mine may haunt me …
    * <?php infophp(); ?>
    should be
    * <?php phpinfo(); ?>
    Apologies !

    Thread Starter Dave Kaufman

    (@dkaufman1)

    podz…
    Thanks again for your quick reply. I tried your “new” command, changed the file and sent it over. But as previously mentioned the .htaccess is corrupted due to a bad copy and paste. If you could just look in a clean .htaccess file and copy and paste that here, I think it might work. I just don’t know what a clean one looks like at this moment.

    WP should generate you a clean permalinks file, but mine is here:
    https://www.tamba2.org.uk/downloads/htaccess.txt
    Bear in mind I have some stuff there which appiles to me given plugins I use.

    Thread Starter Dave Kaufman

    (@dkaufman1)

    First off thanks!
    WP did generate the .htaccess file and then I went in to change it and messed it up. (as shown above).
    I will look at yours and see where the mistake is, and attempt to create a new one.
    Do you see any “blatant errors” with the one in the first post of this thread?

    Thread Starter Dave Kaufman

    (@dkaufman1)

    First thanks to modz.
    For those that have this problem in the future….All I did was delete all the stuff I added to the .htaccess file. Then go ahead and copy the permalinks stuff again and visit the .htaccess file and re-paste it. It all works just fine.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘.htaccess and 500 error’ is closed to new replies.