Rewrite rules won't 'take'

Discussion in 'Install/Configuration' started by radixhound, Sep 10, 2009.

  1. radixhound

    radixhound Member


    I'm experiencing a royal pain with a virtual host. I deleted it earlier today and re-created it. Now I've re-set the rewrite rules and they are not 'taking'. I keep editing the rule and the result doesn't change. For example, I changed it to redirect from to but it's not doing that, it's still redirecting from to

    All I really need is the redirect from / to /home.

    Is there any chance that some of the settings from the old deleted virtual host are still being remembered and over-riding the settings I'm putting in there?

    This is all I'm trying to do... :confused:

    RewriteCond %{HTTP_HOST} !^mysite\.ca$ [NC]
    RewriteRule .* [L,R=301]
    RewriteRule ^/$ /home [L,R=301]
  2. auser

    auser Super Moderator

    RewriteCond %{HTTP_HOST} !^mysite\.ca$ [NC]
    RewriteRule (.*)$1 [L,R=301]
    RewriteRule ^/$ [L,R=301]

Share This Page