Reply
Please tell me how to make 301 redirection of these links in this .htaccess file?
Old 06-27-2007, 09:30 AM Please tell me how to make 301 redirection of these links in this .htaccess file?
crush123's Avatar
Webmaster Talker

Posts: 528
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 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 all the links as 301 and search engine friendly.

Thanks a lot.

Last edited by crush123 : 06-27-2007 at 01:38 PM.
crush123 is offline
Reply With Quote
View Public Profile Visit crush123's homepage!
 
When You Register, These Ads Go Away!
Old 06-27-2007, 12:18 PM Re: Please tell me how to make 301 redirection of these links in this .htaccess file?
Learning Newbie's Avatar
Moderator

Latest Blog Post:
My Wish for Webmaster Talk
Posts: 5,179
Name: John Alexander
What links aren't search engine friendly, and who told you that?

If you go changing all your URLs, that's search engine unfriendly. They'll eventually sort it out and carry your links over, but it will take a while, and you'll loose any ranking you've built up in the meantime.
__________________
4 ways to improve the lives of the "bottom billion"

"HEY YOU KIDS GET OFF MY LAWN!" -John McCain
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 06-27-2007, 12:44 PM Re: Please tell me how to make 301 redirection of these links in this .htaccess file?
crush123's Avatar
Webmaster Talker

Posts: 528
Hello Learning Newbie,
let me explain clearly:

I am trying to remove ? and & symbols etc from the links of my pages so that I can covert dynamic links into static links.

Now my links are not SE frienly because they are 302 Temporary Redicts rather than 301 Permanent Redirects.

I Wish to make all my redirected links as 301 permanent links rather than 302.

This process is not at all against SE guidelines.
There is no danger of losing any ranking because of changing links from 302 to 301.

Thanks for your reply.

Looking forward to more replies...
crush123 is offline
Reply With Quote
View Public Profile Visit crush123's homepage!
 
Reply     « Reply to Please tell me how to make 301 redirection of these links in this .htaccess file?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13768 seconds with 12 queries