My redirect isn't working !?

Discussion in 'Apache' started by jimsmith, Jun 13, 2006.

  1. #1
    the contents of my .htaccess :

    AddType application/x-httpd-php .php .htm .html
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} ^(.*).htm [NC,OR]
    RewriteCond %{REQUEST_FILENAME} ^(.*).html [NC]
    RewriteRule ^(.*) /passthru.php?file=$1
    </IfModule>

    redirect 301 /oldsite/ http://www.newdomain.com

    Obviously trying to get oldsite to redirect to newdomain.com
    Anyone see the problem here?

    FIXED THE PROBLEM
    THE REDIRECT CODE WAS RIGHT

     
    jimsmith, Jun 13, 2006 IP