PDA

View Full Version : htaccess question ( rewrite )


patrox
01-20-2006, 04:37 PM
Hello

I know not much about rewrite, but i have seen the following in the htaccess:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [QSA,L]

I would like to know if the RewriteRule is returning a 302 or a 301.

is it correct if i replace by:
RewriteRule .* index.php [R=301,QSA,L]

the reason is that google will not scan 302 redirects anymore ( it thinks of it as 404 because of people who hijacked some sites with 302 apparently )

Try a 302 in your googlesite map, and surprise... 404 error.

thank you
pat.