Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    763
    Plugin Contributions
    4

    Default Custom .htaccess problems with existing html site while testing in subfolder

    I have an existing html site and am testing zc139h in a subfolder of that site, where access to the subfolder is password protected.

    Problem is that Google has found the test site and is redirecting traffic to it, rather than to the existing site, which has the same GA code.

    Q1. What do I need to do to prevent Google from indexing/re-indexing the test site in the subfolder?

    Q2. Do I need to do anything to the respective htaccess files for the existing and test sites.

    Thanks in advance.

  2. #2
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    763
    Plugin Contributions
    4

    Default Re: Existing html site while testing zencart in subfolder

    The htaccess for html site is

    Code:
    RewriteEngine on
    # -FrontPage-
    
    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
    
    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName mysite.com
    AuthUserFile /home/myname/public_html/_vti_pvt/service.pwd
    AuthGroupFile /home/myname/public_html/_vti_pvt/service.grp
    RewriteCond %{HTTP_REFERER} !^http://mysite.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://mysite.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.mysite.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.mysite.com$      [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
    The htaccess for zc in subfolder

    Code:
    AuthType Basic
    AuthName "subfolder"
    AuthUserFile "/home/myname/.htpasswds/public_html/subfolder/passwd"
    require valid-user

 

 

Similar Threads

  1. How to copy HTML / Add To Cart to an existing web site?
    By shark-mark in forum General Questions
    Replies: 4
    Last Post: 30 Oct 2011, 02:12 PM
  2. Integration into existing CSS/HTML site
    By ckbnelson in forum Templates, Stylesheets, Page Layout
    Replies: 25
    Last Post: 14 May 2010, 04:38 AM
  3. Use Check/Money Order payment while testing your site
    By ducksigns in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Oct 2007, 03:28 PM
  4. Working on Basic Template While Existing Site Remains Active?
    By crystal-vysion in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 15 May 2007, 10:37 PM

Bookmarks

Posting Permissions

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