• Resolved semperfidelis

    (@semperfidelis)


    Hi there!

    I just upgrade to WordPress 2.0 but the new version don′t want to write de “.htaccess” file.

    This is my .htaccess in 2.0:

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

    # END WordPress

    After upgrade, i update the Permalinks (Opciones->Permalinks) just like says in the Codex (https://codex.www.ads-software.com/Upgrading_WordPress) but it dosen′t work.

    I have a copy of my old “.htaccess” (1.5.2 version). But ?i don′t know what is the problem!

    What can i do for fix it?
    Can i just use the old .htaccess file?
    How can i do a new one in the 2.0 version?

    Help me please.
    Thanks.

    Ezequiel Apesteguia
    https://www.pdsxxi.com.ar

Viewing 15 replies - 1 through 15 (of 19 total)
  • There is a problem in 2.0 if you change the permalinks struture. It generates the file you have listed above. I enabled permalinks and all of a sudden my podcasts broke because the rewrite rule broke access to my mp3’s, even if you tried to navigae to them directly.

    The fix for me was to return permalinks to the default and delete the .htaccess file as listed above (rename it to be safe). It could be that this only broke old posts when permalinks were different but I am not sure. Links to my .mp3 files would actually return posts as opposed to the file, ouch!

    I haven’t had a chance to dig into this yet but that is the quick fix for me; not sure about the 1.5 .htaccess file.

    – Trip

    semperfidelis, the .htaccess file you show above is exactly how WP 2.0’s .htaccess file should look, because it now handles rewrite rules internally.

    Thread Starter semperfidelis

    (@semperfidelis)

    Hi Trip!

    ok, you fix the problem by “return permalinks to the default”
    But i don′t want to have permalinks like:

    https://www.pdsxxi.com.ar/?p=123

    I want to have the structure:
    /archivos/%day%/%monthnum%/%year%/%post_id%/

    In 1.5.2 i have this structure and my .htaccess file works fine.

    If i replace the .htaccess for the old one (1.5.2) and update the permalinks in 2.0 to:
    /archivos/%day%/%monthnum%/%year%/%post_id%/

    Can it work fine?

    No…. the .htaccess rules in 2.0 will always appear as you have them listed in your first post; wp handles that internally now.

    There have been a lot of problems with .htaccess. If you do a site search using google, you will find various threads, and perhaps some solutions.

    Thread Starter semperfidelis

    (@semperfidelis)

    Hi Filosofo.

    So … ?my .htaccess file is fine? No need to change it?

    Thread Starter semperfidelis

    (@semperfidelis)

    vkaryl, thanks. I will try to find the threads.

    Well, let us know how it goes, okay?

    The only structure I’ve found to work is to have it include index.php, such as

    /index.php/archivos/%day%/%monthnum%/%year%/%post_id%/

    I don’t think the problem is in htaccess. I believe it is a bug in classes.php

    See https://www.ads-software.com/support/topic/56423

    Thread Starter semperfidelis

    (@semperfidelis)

    ok, when a fix the problem i let you know. ?? thanks

    semperfidelis, could you explain what the problem is that you’re having? The permalinks should work just the same as they did with 1.5.x, except that you won’t see all the rewrite rules in the .htaccess file.

    If you’re getting an error with the permalinks, or you have plugins that have custom rewrite rules, then that may be a different story.

    Thread Starter semperfidelis

    (@semperfidelis)

    i′m back:

    I didn′t have any problems with my blog, Errors 404 for example, like in the others posts. I′m just worry about the .htaccess file. In wp 1.5.2 the file was “longer”.

    I can′t find “A” solution, but …

    I tried https://www.ads-software.com/support/topic/54340?replies=27
    (replace the functions-post and classes files and update the permalinks)

    and https://www.ads-software.com/support/topic/56423.
    (tried with /index.php/ on the structure of permalinks)

    In both cases the permalinks works fine. Anyway, i just have the same .htaccess file:


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

    # END WordPress

    My blog works fine, but ?is the .htaccess fine?
    ?wp 2.0 handles .htaccess rules internally now?

    That’s how the .htaccess will always look now. It’s designed to look and work that way. It’s fine – that’s now the programmed default.

    Thread Starter semperfidelis

    (@semperfidelis)

    filosofo:

    I′m not getting an error with the permalinks. I want to install wp2pdf plugin:
    https://wp2pdf.sourceforge.net/

    Thread Starter semperfidelis

    (@semperfidelis)

    vkaryl

    OK! THANKS! you answer my question! jeje ??

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘.htaccess problem in 2.0’ is closed to new replies.