Mod Rewrite Problem

Discussion in 'Apache' started by redhits, Apr 10, 2006.

  1. #1
    I am having this .htaccess


    ErrorDocument 404 http://softgroups.com/404.php
    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www.softgroups\.com [NC]
    RewriteRule ^(.*)$ http://softgroups.com/$1 [L,R=301]



    My only problem is that for those 404 error.... it will also generate a 302 redirect code... and I don't want that !

    I don't want that if somebody go to http://softgroups.com/nowhere.php
    to be redirected on http://softgroups.com/404.php ! I just want... the error to be showed normal , on each page, without a + Redirect

    So what should I change here?!

    I am also want to keep that RewriteCOnd/RewriteRule active ....
     
    redhits, Apr 10, 2006 IP