WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [htaccess] Permalinks not working after plugin replacement (6 posts)

  1. Czytam
    Member
    Posted 5 years ago #

    Last night I decided I wanted to replace Feedburner Feed Replacement plugin with the offical Feedburner Feedsmith, but something went wrong. I think while cleaning .htaccess file I accidentally removed a line too much and my permalinks stopped working.

    I quickly copied the correct .htacceess file (less the old feedburner feed replacement lines), but it still doesn't work and now instead of nice and clear permalinks (/%year%/%monthnum%/%postname%/) like I used to have, I'm stuck with /index.php/%year%/%monthnum%/%postname%/

    Worse, even if I completely clear .htaccess and try to start from scratch, my WordPress doesn't overwrite it. Apache and mod_rewrite shouldn't be a problem, cause (1) I had a working version of permalinks only yesterday and (2) I have another WordPress install on this server and it works with permalinks (though I didn't replace old feedburner plugin with Feedsmith).

    Anyone can save me?

  2. Austin Matzko
    Member
    Posted 5 years ago #

    Feedburner Feedsmith does not appear to write to the .htaccess file, so you shouldn't need anything more than the standard WordPress .htaccess, which is provided to you on the permalinks page in the admin. It usually looks like this:

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

    When you say the permalinks don't work, what exactly doesn't work? What is the error?

  3. Czytam
    Member
    Posted 5 years ago #

    I mean the 'cute' version of permalinks - all I could do was to set up the '/index.php/ version and all my internal and incoming links got broken.

    The standard WordPress .htaccess didn't work - it was the first thing I did while trying to restore the things they used to be.

    Finally, I've come up to a lame solution, but it works. I changed the /wp-includes/vars.php file and instead of this:

    $is_apache = ((strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false) || (strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false)) ? true : false;

    I have:

    $is_apache = ((strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== true) || (strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false)) ? true : false;

    but now every time I update WordPress I'll have to remember that vars.php needs to be modified again.

    It looks like my server didn't realise it's got mod_rewrite on.

  4. Austin Matzko
    Member
    Posted 5 years ago #

    all my internal and incoming links got broken

    What do you mean by "broken"? What do they look like?

  5. Czytam
    Member
    Posted 5 years ago #

    filosofo, it's all fine now.

    By broken I meant that internal and incoming links had the 'cute' form without index.php. When my permalinks got broken I could only have the /index.php/%year%/%monthnum%/ etc. version.

  6. Austin Matzko
    Member
    Posted 5 years ago #

    Actually, I'm greatly interested in WordPress development and bug-quashing, so if someone has to modify core files to get permalinks to work, not everything is fine.

Topic Closed

This topic has been closed to new replies.

About this Topic