HTTPS to HTTP .htaccess redirect


I recently moved my forum to a new URL.

Old forum was located at:
and new one:

I used the following 301 redirect:

Options +FollowSymLinks
RewriteEngine on
RewriteRule forum/(.*) http://www.newdomain/$1 [R=301,L]

redirect 301 /

Now I just noticed that there are thousands of old forum pages indexed at Google with “https” in front of them and when clicked, all you get is some error page. So I would need to redirect to

I think I’ve tried everything but I just can’t seem to find a way to redirect https requests to http.

Any ideas?

If your server isn’t configured for https (and it sounds like it isn’t, hence the error page), you can’t redirect, since you only redirect URLs that Apache can actually serve.

What kind of error page do you get exactly?


mod_alias (Redirect) is part of the Apache core thus its directives are handled BEFORE the mod_rewrite directives. That means that mod_rewrite will never see this code (unless ===

As always, the sticky threads based on my signature’s mod_rewrite tutorial Article has the answer for you … in code.