Results 1 to 5 of 5

Thread: 301 redirect to new site
      
   

  1. #1
    jcaywood is offline Major
    Join Date
    Dec 2007
    Location
    Bastrop, TX USA
    Posts
    417

    Default 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

  2. #2
    Karen Mac's Avatar
    Karen Mac is offline General
    Join Date
    Apr 2006
    Location
    X marks the spot
    Posts
    8,353

    Default 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
    07031847328 / United Kingdom

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

    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)



  3. #3
    jcaywood is offline Major
    Join Date
    Dec 2007
    Location
    Bastrop, TX USA
    Posts
    417

    Default 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

  4. #4
    Karen Mac's Avatar
    Karen Mac is offline General
    Join Date
    Apr 2006
    Location
    X marks the spot
    Posts
    8,353

    Default Re: 301 redirect to new site

    yes...its a typo..

    Karen

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

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

    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)



  5. #5
    jcaywood is offline Major
    Join Date
    Dec 2007
    Location
    Bastrop, TX USA
    Posts
    417

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49