Firefox page isn't redirecting properly

Complete noob when it comes to server configuration stuff, I’m a designer with a request from a client and I’m having issues.

I need to rewrite the url from http to https. I found how to do this using .htaccess. This is the only code in my htaccess file:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} secure
RewriteRule ^(.*)$$1 [R,L]

The two pages in the directory are and

With the rewrite turned on, firefox gives me the this error: “Firefox has detected that the server is redirecting the request for this address in a way that will never complete.”

Any help would be greatly appreciated! Thanks in advance!


First, Firefox does not redirect, Apache does (when directed to).

Since your mod_rewrite code is correct (and will not cause a loop), there must be something else going on - like not having mod_rewrite enabled (not likely else Firefox would not have received a “loopy” statement) or a secure server installed so the https:// is being served by the http:// protocol. Check with your host for that.




Thanks for the reply! I’ll contact the host and see if they can’t find the source of the problem.