+ Reply to Thread
Results 1 to 4 of 4

Thread: About 301 Redirect

  1. #1
    HWHT Starter fyaseo is on a distinguished road
    Join Date
    Jan 2015
    Location
    India
    Posts
    3

    About 301 Redirect

    I have issues , how to apply 301 redirect in .net ???

  2. #2
    HWHT Starter breeze_host is on a distinguished road
    Join Date
    Oct 2017
    Location
    India
    Posts
    7
    Kindly follow the below simple steps to apply 301 redirects in.net:

    1. Login to Cpanel(if you do not have Cpanel, we suggest to buy it)
    2. Go to the redirects option
    3. Click the tab you want to select (like 301 and 302)
    4. Select your domain which to redirect
    5. Give path to the domain which you want to redirect (for eg. You selected abc.com domain and gave the path https://path name )
    6. Click add
    7. Redirection is successful

    This will help you

  3. #3
    Web Hosting Expert RepriseH is on a distinguished road
    Join Date
    Jul 2017
    Location
    India
    Posts
    469
    301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code "301" is interpreted as "moved permanently".
    Cheap VPS | $1 VPS Hosting
    Cheap Dedicated Servers | Dedicated Servers starting from $29/MO

  4. #4
    Hosting Master Lebar.123 is on a distinguished road
    Join Date
    Oct 2017
    Location
    Romania
    Posts
    101
    Try this:

    void Application_BeginRequest(object sender, EventArgs e)
    {
    // Code that runs on every request

    if (HttpContext.Current.Request.Url.ToString().ToLowe r().Contains("http://website.net"))
    {
    HttpContext.Current.Response.Status = "301 Moved Permanently";
    HttpContext.Current.Response.AddHeader("Location", Request.Url.ToString().ToLower().Replace("http://website.net", "http://www.website.net"));
    }

    }
    Get 100 Free Email Verifier Credits at Zero Bounce
    Our unique email validation service eliminates high bounce rates.

+ Reply to Thread

Similar Threads

  1. What is 301 Redirect in SEO?
    By MariyaDesoza in forum Search Engine Optimization
    Replies: 0
    Last Post: 11-01-2012, 06:03 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts