• Hello, I migrated my blog from Blogger to WordPress and almost everything is working very fine!

    I changed the permanent links to be more like blogger style and the blogger redirection it’s working.

    There are just one case that the blog is returning 404 error. The url form is /2007_02_01_archive.html or ^/([0-9]{4})_([0-9]{2})_([0-9]{2})_archive\.html$

    I edited my .htaccess to add this case and rewrite to /$1/$2/ and my .htaccess became this bellow:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^/([0-9]{4})_([0-9]{2})_[0-9]{2}_archive\.html$ /$1/$2/ [R]
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    The problem is that with this .htaccess my blog is returning error 500 and on log file I can see the following error:

    [Sun Sep 13 17:59:44 2009] [error] [client 201.53.183.46] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

    Could someone help me with this problem?

    Thanks in advance, Jose Antonio

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter javsmo

    (@javsmo)

    Just to update the problem.

    I also tried the [R,L] flag after the first RewriteRule and the same problem persists.

    I commented this rule, but I’d like to know if it’s possible to make these $1_$2_$3_archive.html pages appear on /$1/$2/ way.

    BTW, my permanent links are in the following form (The blogger form):

    /%year%/%monthnum%/%postname%.html

    Thanks.

    Thread Starter javsmo

    (@javsmo)

    No one?

    Hi,

    Set your desired permalinks and add this code in htaccess:

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

    After that check with old and new posts.

    Thanks,

    Shane G.

    Thread Starter javsmo

    (@javsmo)

    Thanks for you answer, but didn’t solve my problem.

    I’d like to be able to redirect the $1_$2_$3_archive.html to /$1/$2/

    The 404 error page is working. But I’d like to show the correct page to user instead 404 error.

    Thanks a lot!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change htaccess’ is closed to new replies.