301 redirect to new site

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • jcaywood
    Major

    • Dec 2007
    • 421

    301 redirect to new site

    What is the best way to redirect all old pages to the new pages?

    I am completely revising a site using a single menu via php, so my new pages will be .php instead of .html.
    When I publish the new pages, I plan to delete the index.html page so going to the site will open index.php.
    But there are lots of links to individual .html pages that I would like to redirect to the new .php pages. It appears the easiest way to do this is to simply redirect the whole site via htaccess. Can this be done when not redirecting to a different site? It seems that my 301 redirect links would be oldsite.com to newsite.com when both are named the same at that level. The individual pages are different (php vs html). Then I thought about not deleting the index.html and adding that to the 301 redirect link but I believe that would only redirect the home page?

    Is it possible to 301 redirect via htaccess in this case?
    Would I need to redirect via 'between head tags' on each page? If so, must the individual pages be blank or can I simply add the code between the head tags without having to delete everything on each page?
    I'm sure I'm missing something...is there a better way?
    Thanks
    Jerry

    Great Adult Gag Gifts
    Rockdale, TX - Class of 1965
    Milam County Historical Commission

  • Karen Mac
    General

    • Apr 2006
    • 8332

    #2
    Re: 301 redirect to new site

    Download and edit your .htacess if there is one on your server. Or make one in notepad. save as.. change to all files type '.htaccess'
    ftp to your site root.

    Redirect 301 http;//www.oldsitedotwhatever/pagename http;//www.samesitedotwhatever/newpagenameiwthnew extension

    Do a line for each page.

    Karen

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    02036089024 / United Kingdom
    291916438 / Australia

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


    Comment

    • jcaywood
      Major

      • Dec 2007
      • 421

      #3
      Re: 301 redirect to new site

      Thanks Karen,

      I'm working on it. Whew!
      I assume the semi-colon after http is a typo?

      Thanks
      Jerry

      Great Adult Gag Gifts
      Rockdale, TX - Class of 1965
      Milam County Historical Commission

      Comment

      • Karen Mac
        General

        • Apr 2006
        • 8332

        #4
        Re: 301 redirect to new site

        yes...its a typo..

        Karen

        VodaHost

        Your Website People!
        1-302-283-3777 North America / International
        02036089024 / United Kingdom
        291916438 / Australia

        ------------------------

        Top 3 Best Sellers

        Web Hosting - Unlimited disk space & bandwidth.

        Reseller Hosting - Start your own web hosting business.

        Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


        Comment

        • jcaywood
          Major

          • Dec 2007
          • 421

          #5
          Re: 301 redirect to new site

          Thanks
          Jerry

          Great Adult Gag Gifts
          Rockdale, TX - Class of 1965
          Milam County Historical Commission

          Comment

          Working...
          X