Submit Your Article Forum Rules

Results 1 to 8 of 8

Thread: 301 redirection code

  1. #1
    Junior Member
    Join Date
    Dec 2009
    Posts
    3

    301 redirection code

    I have 2 sites...One is hosted at Apache server and other is at Linux server ...I have to implement 301 redirect for both sites so i just want to know that does the same code will work for both sites??? Your quick answer will be appreciated...

  2. #2
    Junior Member
    Join Date
    Aug 2011
    Posts
    2
    It is dependent on which platform you are using for your website. PHP, ASP, HTML, JSP- any of them is having variation in code logic/syntax to permanent redirect using 301.

  3. #3
    Senior Member jhannawin's Avatar
    Join Date
    Jun 2010
    Location
    UK
    Posts
    178
    Quote Originally Posted by neo09 View Post
    One is hosted at Apache server and other is at Linux server
    Ok, we need some clarity here, Apache is a webserver that runs on multiple operating systems. Linux is a popular operating system upon which Apache is the most popular webserver. So that chances are that your sites are hosted identically and the same 301 code will work.
    ---------------------------------------------------------------------
    I-ntarsia(tm) - A Hosted CMS for web designers and marketing agencies

  4. #4
    Junior Member
    Join Date
    Aug 2012
    Posts
    1
    If you are running identical webserver on both servers then the same code would work..

  5. #5
    Junior Member
    Join Date
    Aug 2012
    Location
    Atlanta
    Posts
    2
    Why are you not redirecting at the registrar level instead of on your server?

  6. #6
    WebProWorld MVP deepsand's Avatar
    Join Date
    May 2004
    Location
    State College, PA
    Posts
    16,465
    Quote Originally Posted by kencook View Post
    Why are you not redirecting at the registrar level instead of on your server?
    Using a Registrar's forwarding feature, if provided, may not be a 301, but rather a 302.

  7. #7
    Member Sanket Patel's Avatar
    Join Date
    Aug 2012
    Posts
    58
    Quote Originally Posted by neo09 View Post
    I have 2 sites...One is hosted at Apache server and other is at Linux server ...I have to implement 301 redirect for both sites so i just want to know that does the same code will work for both sites??? Your quick answer will be appreciated...
    The same code will definitely work for both the sites. Google is not concerned with the name of the server you use.

  8. #8
    WebProWorld MVP deepsand's Avatar
    Join Date
    May 2004
    Location
    State College, PA
    Posts
    16,465
    Quote Originally Posted by Sanket Patel View Post
    The same code will definitely work for both the sites. Google is not concerned with the name of the server you use.
    Since the OP has failed to return to clarify just what web server(s) he is using, the hostname is wholly irrelevant to what languages and protocols the web server supports, and Google plays absolutely no role in the matter, your statement is triply fallacious.

  9. The following user agrees with deepsand:

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
  •