View Single Post
Share |
  #1 (permalink)  
Old 06-27-2007, 06:27 AM
antispyware antispyware is offline
Junior Member
 
Join Date: 03-18-06
Posts: 9
iTrader: 0 / 0%
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 check
tool" and it shows that my links 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 search engine friendly.

Thanks a lot.
 
Reply With Quote