Question:

Seo - 301 Redirect?

by  |  earlier

0 LIKES UnLike

I have a online store with about 300 products - I am about to upload my new store in a different part on my server .

What is the best way to do the 301 Redirect all my products are dynamic pages using asp and data base driven .

I don’t want to hurt my Google ranking for some of my KW's.

What is the best way to do this ?

 Tags:

   Report

3 ANSWERS


  1. Use mode rewrite on your site so that your URL become search engine friendly.


  2. I believe you are running a windows based server and you do not have a .htaccess file in the root.  If you are using asp use the following code on all the old pages. Remove any other content on the old pages

    <%@ Language=VBScript %>

    <%

    Response.Status="301 Moved Permanently"

    Response.AddHeader "Location", "/new-page.asp"

    %>

    If it is .net

    <script runat="server">

    private void Page_Load(object sender, System.EventArgs e)

    {

    Response.Status = "301 Moved Permanently";

    Response.AddHeader("Location","/new-pa...

    }

    </script>

    Hope this helps..

  3. Go into your webhost and find your .htaccess file. Edit it and "add" the following:

    RewriteEngine On

    RewriteCond %{HTTP_HOST} ^yourwebsitedomain123.com

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

    Obviously change the "yourwebsite123" to whatever your site domain name is.
You're reading: Seo - 301 Redirect?

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.