• 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 https://www.mortgageadvicecenter.co.uk/mortgage-news
    redirect 301 /are-you-not-the-perfect-mortgage-applicant https://www.mortgageadvicecenter.co.uk/mortgage-news
    redirect 301 /there-are-funds-available-to-borrowers https://www.mortgageadvicecenter.co.uk/mortgage-news
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Patrick

    (@randomgift)

    Does nobody know what’s going wrong here?

    Thanks!

    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 .* https://www.mortgageadvicecenter.co.uk/mortgage-news [NC,L]
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘htaccess causing internal server error (500)’ is closed to new replies.