3 replies
  • WEB DESIGN
  • |
I've just put up a very simple split testing script.

So I now hav mysite.com/index1.html

and mysite.com/index2.html

Although I don't ever want anyone landing on the page with the inex.html on the end of it.

What is it I need to do to make sure only mysite.com is served up not matter which of the two are being displayed.

My guess is .htacess but Im not sure if it is.

Thanks.
#split
  • Profile picture of the author mojojuju
    If I understand this correctly, you don't want anyone to view mysite.com/index.html and you want any requests to that page to go to mysite.com .

    If that's correct, you can achieve that by putting the following in your .htaccess file:

    Code:
    RewriteEngine On
    
    RewriteRule ^index.html$ http://www.mysite.com/ [R=301,L]
    Use a 301 or 302 or whatever suits your tastes.
    Signature

    :)

    {{ DiscussionBoard.errors[802809].message }}
    • Profile picture of the author Intrepreneur
      Originally Posted by mojojuju View Post

      If I understand this correctly, you don't want anyone to view mysite.com/index.html and you want any requests to that page to go to mysite.com .

      If that's correct, you can achieve that by putting the following in your .htaccess file:

      Code:
      RewriteEngine On
      
      RewriteRule ^index.html$ http://www.mysite.com/ [R=301,L]
      Use a 301 or 302 or whatever suits your tastes.

      Thats not it, becuase when I do that it directs them to root folder... where it is encountering an index.php slplit test script.

      Unless you didn't read what I said..
      {{ DiscussionBoard.errors[803807].message }}
  • Profile picture of the author Aronya
    Your server is going to send people to either an index.() page or a home.() page -there may be others- by default. It will never send people to index1.() on its own. That would be up to your script. If someone enters www.mysite.com and doesn't get directed to the pages you are intending, then your script isn't working.

    The first simple step to ensure that no one sees index.htm (or .php) is to remove those files from the server in the first place.
    {{ DiscussionBoard.errors[804912].message }}

Trending Topics