• I upgraded yesterday to WP 2.0.4. All went fairly well, save for a small problem with the htaccess file.

    I have a program on my site, unrelated to WordPress, that I access through a URL of the form https://mydomain.net/cgi-bin/program.pl/parameter. This worked while I was using WP 1.5.1 and its .htaccess file. Now, however, any attempt to access this URL brings me to the 404 page for my site. Removing or renaming the .htaccess file restores access to this CGI app.

    I have the Feedburner plugin installed. Disabling it, and recreating the .htaccess file, does not restore the access to the CGI. A little experimentation seems to indicate that the problem lies with one of the last three directive in the .htaccess file (under “These are the standard WordPress Rules”), but I am not proficient enough in the ways of .htaccess to work out the fix.

    I have appended the .htaccess file below. Any assistance gratefully accepted. Many thanks.

    — mb

    — begin .htaccess file —

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    # Redirect FeedBurner to your own Feed
    RewriteBase /
    RewriteRule ^feedburner_961465/?$ /feed/ [R,L]
    RewriteCond %{HTTP_USER_AGENT} ^FeedBurner.*$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # These Rules redirect all feed Traffic to FeedBurner
    RewriteBase /
    RewriteCond %{QUERY_STRING} ^feed=(feed|rdf|rss|rss2|atom)$
    RewriteRule ^(.*)$ https://feeds.feedburner.com/mydomain [R,L]
    RewriteRule ^(feed|rdf|rss|rss2|atom)/?(feed|rdf|rss|rss2|atom)?/?$ https://feeds.feedburner.com/mydomain [R,L]
    RewriteRule ^wp-(feed|rdf|rss|rss2|atom).php https://feeds.feedburner.com/mydomain [R,L]
    # These are the standard WordPress Rules
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    — end .htaccess file —

    .htaccess also posted at https://pastebin.com/764609
    (warning… very slow this morning!)

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘htaccess hijacks cgi-bin URL’ is closed to new replies.