Jump to content

is rewrite doin a 302 redirect?


seksislav

Recommended Posts

Hey guys,

 

i'm not really familiar with mod_rewrite, but I hope you understnat my problem and please try to help me.

 

So I copied some rules from somwhere and this is how mu .htaccess file looks like:

 

RewriteEngine On

 

RewriteCond %{HTTP_HOST} !^www\.studentskicredit\.com$ [NC]

RewriteRule ^(.*)$ http://www.studentskicredit.com/$1 [R=301,L]

 

RewriteCond %{REQUEST_FILENAME} -s [OR]

RewriteCond %{REQUEST_FILENAME} -l [OR]

RewriteCond %{REQUEST_FILENAME} -d

 

RewriteRule ^.*$ - [NC,L]

RewriteRule ^.*$ index.php [NC,L]

 

for some reason when i open the domain i get a 302 redirection and i have no clue why. What i'm trying to do is get the index.php file to parse the url ( which works fine for the moment ) and do what the script tells it to do, but what i'm woried about is how is this gonna affect google indexing/ranking ... Thanks for your time on reading this and I hope i you have an answer for me to waste a little more time and help.

 

Regards

Link to comment
https://forums.phpfreaks.com/topic/212903-is-rewrite-doin-a-302-redirect/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.