301 redirects grrr

Last post 11-09-2009 6:06 AM by iperez_genius. 5 replies.

Sort Posts:

  • 301 redirects grrr

    11-08-2009, 9:13 PM
    • Member
      43 point Member
    • iperez_genius
    • Member since 02-11-2006, 5:16 AM
    • Australia
    • Posts 207

    i am looking to do 301 redirects.


    from index.html to default.aspx

    I want to do this in the htaccess file.


    this is what i am currently doing and it doesn't seem to work.

    redirect 301 /index.html http://www.mooreparkstables.com.au/default.aspx

    what am i doing wrong?


    I have about 15 URL to redirect...so i want to deal with this through the htacess file.


    Thanks


    ilan





    Ilan Perez
    web Developer | Designer
    Filed under: ,
  • Re: 301 redirects grrr

    11-08-2009, 10:36 PM

    Hi,

    Would you please be more specific about it doesn't work? You can take a look at the following page on how to redirect a web page using a 301 Redirect: 

    http://www.isitebuild.com/301-redirect.htm 

    Catherine Sea
    Version Control Software | Software Configuration Management Solution
  • Re: 301 redirects grrr

    11-08-2009, 11:34 PM
    • Contributor
      6,290 point Contributor
    • sreejukg
    • Member since 10-31-2004, 7:33 AM
    • Bahrain
    • Posts 1,061

    Redirect Old domain to New domain (htaccess redirect)

    Create a .htaccess file with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.
    The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

    Please REPLACE www.newdomain.com in the above code with your actual domain name.

    In addition to the redirect I would suggest that you contact every backlinking site to modify their backlink to point to your new website.

    Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.

    The real voyage of discovery consists not in making new landscapes, but in having new eyes
  • Re: 301 redirects grrr

    11-08-2009, 11:39 PM
    • Member
      43 point Member
    • iperez_genius
    • Member since 02-11-2006, 5:16 AM
    • Australia
    • Posts 207

    so what is the best y to modify links for a windows server?


    Ilan Perez
    web Developer | Designer
  • Re: 301 redirects grrr

    11-09-2009, 5:24 AM
    • Member
      43 point Member
    • iperez_genius
    • Member since 02-11-2006, 5:16 AM
    • Australia
    • Posts 207

    i found this solution on the web...


    http://www.google.com/support/forum/p/Webmasters/thread?tid=128d859a1c88ece9&hl=en


    is this really a solution?


    Ilan


    Ilan Perez
    web Developer | Designer
  • Re: 301 redirects grrr

    11-09-2009, 6:06 AM
    Answer
    • Member
      43 point Member
    • iperez_genius
    • Member since 02-11-2006, 5:16 AM
    • Australia
    • Posts 207

    For those that are searching, here is the answer


    1. Make sure your webhost has enabled htacces of httpd.ini

    2. In either case on a WINDOWS SERVER you use ISAPI

    3. If you use htaccess you use ISAPI version 3

    if you use httpd.ini use ISAPI version 1


    here is an example for htaccess


    RewriteEngine on
    RewriteBase /
    RewriteRule ^index\.html$ / [NC,R=301,L]

    RewriteRule ^about\.html$ /aboutus.aspx [NC,R=301,L]



    I hope that help someone else!


    Ilan


    Ilan Perez
    web Developer | Designer
Page 1 of 1 (6 items)