Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 06:20:58 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155547 Posts in 21714 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Methods in Accessing Subdomains as Test, or Dev, Environment  (Read 214 times)
jtrein

Offline Offline

Posts: 24


« on: June 09, 2011, 06:11:07 PM »

Hello,

I purchased a shared hosting account.  What I'm thinking about doing is having a test server created under a separate directory and database (separate WB install), then assigning it a subdomain (test.mysite.com).  This allows me the comfort of developing on the same environment, since they're on the same box.  Currently I'm using MAMP (Mac's WAMP, XAMP) to manage my test server.

I want this test environment to be only viewed from a certain, fixed IP, and to not have it followed, or indexed in search engines.

  • Do I just alter the .htaccess file to allow only my IP?
  • Do I need to do:
Code:
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">

    Thanks in Advance, Guys & Gals!
    « Last Edit: June 09, 2011, 06:13:49 PM by jtrein » Logged
    YoJoe

    Offline Offline

    Posts: 74


    WWW
    « Reply #1 on: June 09, 2011, 06:53:30 PM »

    Set a password to protect the directory (htpasswd or you can have such option in hosting panel), and you're done.
    No need to allow access from a fixed IP.
    Logged

    WuJitsu - in web I trust  cool
    jtrein

    Offline Offline

    Posts: 24


    « Reply #2 on: June 10, 2011, 04:02:08 PM »

    @YoJoe

    Dude, weird.  I did exactly that.  Thank you for your reply!

    I also added NOINDEX NOFOLLOW to my template <head>, so Google, et al. don't pick up on it.


    Kindest  afro

    J. Trein
    Logged
    Pages: [1]   Go Up
    Print
    Jump to:  

    Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!