witam wszystkich!

moj htaccess wyglada tak

RewriteEngine on
Redirect 302 ^(.*)$ /redirect.php/$1
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L,NC,PT]

  1. function redirect($url, $type=301)
  2. {
  3. if ($type == 301) header("HTTP/1.1 301 Moved Permanently");
  4. header("Location: $url");
  5. exit();
  6. }
  7. redirect("http://www.mojastrona.pl") ;


co robie zle?

chodzi mi o ustawienie przekierowania z 302 na 301 dla nieistniejacych podstron

PROSZE O POMOC!