WordPress.org

Ready to get started?Download WordPress

Forums

htaccess causing internal server error (500) (3 posts)

  1. Patrick
    Member
    Posted 2 years ago #

    Hi there,

    I'm trying to use htaccess to redirect a list of old URLs but every time I try to add them to the htaccess file I get an internal server error.

    I do have a 301 redirect plugin installed too.

    Any ideas what's wrong with this file? Thanks!

    # 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]
            </IfModule>
    
            # END WordPress
    
    redirect 301 /real-mortgage-for-real-people http://www.mortgageadvicecenter.co.uk/mortgage-news
    redirect 301 /are-you-not-the-perfect-mortgage-applicant http://www.mortgageadvicecenter.co.uk/mortgage-news
    redirect 301 /there-are-funds-available-to-borrowers http://www.mortgageadvicecenter.co.uk/mortgage-news
  2. Patrick
    Member
    Posted 2 years ago #

    Does nobody know what's going wrong here?

    Thanks!

  3. MickeyRoush
    Member
    Posted 2 years ago #

    Put this above '# BEGIN WordPress'

    RewriteEngine On
    RewriteCond %{REQUEST_URI} ^real-mortgage-for-real-people [NC,OR]
    RewriteCond %{REQUEST_URI} ^are-you-not-the-perfect-mortgage-applicant [NC,OR]
    RewriteCond %{REQUEST_URI} ^there-are-funds-available-to-borrowers [NC]
    RewriteRule .* http://www.mortgageadvicecenter.co.uk/mortgage-news [NC,L]

Topic Closed

This topic has been closed to new replies.

About this Topic