View Single Post
  #1 (permalink)  
Old 06-27-2007, 12:17 PM
crush123 crush123 is offline
WebProWorld Pro
 
Join Date: Dec 2005
Posts: 220
crush123 RepRank 0
Exclamation Please tell me how to make 301 redirection of these links in this .htaccess file?

Hello,
I have a .htaccess file and this is the code:
-----------------------
RewriteEngine on
RewriteRule ^site/(.*)$ site.php?id=$1
RewriteRule ^downloads/(.*)$ search.php?keywords=$1
RewriteRule ^downloads/(.*)/(.*)$ search.php?keywords=$1_$2
RewriteRule ^download/(.*)/(.*)$ search.php?keywords=$1&page=$2
RewriteRule ^review/(.*)$ review.php?d=$1
RewriteRule ^edit/(.*)$ edit.php?d=$1
RewriteRule ^refer/(.*)$ refer.php?d=$1

IndexIgnore *

Redirect http://mysite.com/s/ http://mysite.com/s/create.php

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.mysite\.com$ [NC]
RewriteRule ^(.*)$ http://mysite.com/$1 [R=301,L]
-----------------------------

( mysite.com is not my site. )

I have checked the links in a popular "search engine friendly redirect check
tool" and it shows that all my links are 302 and are not SE friendly.

I wish to make all these redirections 301.
I have placed [R=301] at the end of all the lines above, but it didn't
worked.

Please tell me how to make the links as 301 and search engine friendly.

Thanks a lot.

Last edited by crush123; 06-27-2007 at 01:47 PM.
Reply With Quote