Correct html code for thank you page?

by Simo
6 replies
Hey guys,

Just wanting to check my html for a thank you page I've have to put up on the fly. Long story short having majore headaches with the JVpress theme and need a work around in the meantime, so I've create an html page using notepad. I am especially conscious of not wanting to get this page indexed, hence asking the warrior programmers for a bit of guidance.

Here's the code:

<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en"
"http://www/w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Thank you</title>
<meta http-equiv= "content type"
content="text/html; charset=utf-8"/>
<meta name='robots' content='noindex' />
<META NAME="ROBOTS" CONTENT="NOODP" >
</head>


Will gratefully accept any changes/improvements (I am not an html whizz at all!)

Cheers,

Andrew
#code #correct #html #page
  • Profile picture of the author xrvel
    You can use "robots.txt" to prevent your page from being indexed.
    Create a file named "robots.txt" on your site root.

    Fill it with this(adjust "thankyou.php" with the page name of your thankyou page)

    Code:
    User-agent: *
    Disallow: /thankyou.php
    Signature
    {{ DiscussionBoard.errors[3098775].message }}
  • Profile picture of the author Simo
    So I need to create a folder called robots .txt on my server and put the html page (my thank you page) in this folder, with the following code at the top of that page? Just want to make sure I got the instructions right.

    Thanks,

    Andrew
    Signature
    Need quality adwords training? The adwords antidote gives you the tools to avoid the Google Slap. Click here to learn more.

    {{ DiscussionBoard.errors[3101451].message }}
    • Profile picture of the author xrvel
      Originally Posted by Simo View Post

      So I need to create a folder called robots .txt on my server and put the html page (my thank you page) in this folder, with the following code at the top of that page? Just want to make sure I got the instructions right.

      Thanks,

      Andrew
      You don't need to create a folder.
      You can put "robots.txt" and thank-you html page on the root.

      For example your home page is on "/public_html/index.html"
      Robots.txt should be on "/public_html/robots.txt"

      If thank you page is on "/public_html/thankyou.html",
      "robots.txt" should contain this
      Code:
      User-agent: *
      Disallow: /thankyou.html
      More information about robots.txt can be found here
      Code:
      http://www.robotstxt.org/
      Signature
      {{ DiscussionBoard.errors[3101543].message }}
  • Profile picture of the author Simo
    Cool - thanks guys. Appreciate that
    Signature
    Need quality adwords training? The adwords antidote gives you the tools to avoid the Google Slap. Click here to learn more.

    {{ DiscussionBoard.errors[3102705].message }}
    • Profile picture of the author Havenhood
      You don't need to create a folder.
      You can put "robots.txt" and thank-you html page on the root.

      For example your home page is on "/public_html/index.html"
      Robots.txt should be on "/public_html/robots.txt"

      If thank you page is on "/public_html/thankyou.html",
      You're very helpful.

      ...a true coder!


      --=--
      Hey Simo!
      Signature

      --= -Spazzle- =--

      {{ DiscussionBoard.errors[3102979].message }}

Trending Topics