Support » Fixing WordPress » Too many redirects in .htaccess cause problems

  • I have 1000 old .html (Google well indexed) pages in 30 folders to redirect, all to root of the same old domain (now WordPress site).
    If i put more then cca. 50 “301 redirects” on my .htaccess file then WordPress stop working properly.
    (for example, the “Read more” function in Posts doesn’t work, 500 internal server errors etc. If i remove some redirects then all working fine again). No error messages received.

    What could be the problem? My hosting? (I have quality hosting) Permissions? Maybe an redirect plugin should be a good idea?
    Thanks for any suggestion.

    This is my .htacess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

    redirects: “single pages” to root:

    Redirect 301 /old-file-1.html
    Redirect 301 /old-file-2.html
    Redirect 301 /old-file-3.html
    … etc

    redirects: “entire folder with subfolders in it with all files” all to root:

    redirectMatch 301 ^/old-folder-1/
    redirectMatch 301 ^/old-folder-2/
    redirectMatch 301 ^/old-folder-3/
    … etc

  • The topic ‘Too many redirects in .htaccess cause problems’ is closed to new replies.