Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jan 2011
    Posts
    302
    Thanks
    7
    Thanked 0 Times in 0 Posts

    301 redirect in html meta tags

    does someone know the code for meta tags for a page using html5 and a 301 redirect? The meta tags are different in html5 - help please.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,700
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    I’m not sure what your intention is. There is no meta tag for 301 redirects. You should use an .htaccess file for that or a PHP header.

  • #3
    Regular Coder
    Join Date
    Jan 2011
    Posts
    302
    Thanks
    7
    Thanked 0 Times in 0 Posts
    in html4 I used a redirect in the meta tags. Here is the situation - I have moved many of the front pages of the countyfairgrounds net website - lied example http://www.countyfairgrounds.net/promoters.php became http://www.countyfairgrounds.net/pro.../promoters.php - and there were quite a few of these changes. I need to forward the first above page to the new one. So Stephan how do I do this?

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,700
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    You have two choices: Use a PHP header redirect in your old pages or use an .htaccess file.

    With the PHP method you keep your old files/file names along with having the new files, and in the old files you put the header thing at the very top (you don’t need your old content there, though). With the htaccess method you can remove all your old files since the server takes care of the requests before a page is even accessed.

  • #5
    Regular Coder
    Join Date
    Jan 2011
    Posts
    302
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Hi Stephen - tell me how to do the htcaccess thing - or should I call Yahoo - who hosts it - the website. I appreciate your help. This stuff never gets easier does it?

  • #6
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,700
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    To quote from the source I provided earlier:
    To Move a single page

    Quick, easy and seamless for your visitors.
    Code:
    Redirect 301 /oldpage.html http://www.example.com/newpage.html
    This is what you write in the .htaccess file which you put in the root directory of your site (of course, you need to adapt the name(s) to the one(s) of your file(s)). If you want to redirect more pages then add more lines like the one above.


  •  

    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
    •