Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using this directive to redirect to HTTPS:

<VirtualHost *:80>
        Redirect                301 /

The problem is that when a path is used in the address bar, like, it takes a pauses for a while before failing with https://bananas.netwebpage (no slash).

Should a rewrite rule be used instead? What should it be, and are there any differences in behaviour that I should be aware of?

share|improve this question
up vote 2 down vote accepted

You could use mod_rewrite, or you could use a RedirectMatch.

e.g. something like this:

RedirectMatch  301  ^(.*)$1

on second thoughts, just add a "/" to the end of the Redirect rule you already have:

    Redirect  301  /

either should work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.