Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Location
    Texas
    Posts
    209
    Plugin Contributions
    2

    Default Re: Re-direct viewers till my sites ready?

    I wrote a short article awhile back on how to redirect using .htaccess It's a little more complicated but it will allow you access to your site while others get redirected.

    llynix.com/articles/htaccess-under-construction

  2. #2
    Join Date
    Jan 2010
    Posts
    131
    Plugin Contributions
    0

    Default Re: Re-direct viewers till my sites ready?

    This is what worked for me..............

    Merlinpa1969
    Black Belt

    Merlinpa1969's Avatar

    Join Date: Mar 2004
    Location: Trapped in this box
    Posts: 16,007

    Default Re: Anyone know how to make index.html default instead of index.php?
    ok not a problem

    Put a .htaccess file in your web root directory, if there isn't one yet.

    Then add the line:

    DirectoryIndex index.html index.htm index.php

    or change it accordingly.
    That line tells apache what file to look at first when it is not specified in the URL, in the same order that you put it after DirectoryIndex.

    In this example it would first look for index.html, load it if found, if not look for index.htm, load it if found, and if not load index.php.
    ##############################___
    Camelot-hosting.com A PCI Compliant E-Commerce Host.

  3. #3
    Join Date
    Jan 2010
    Posts
    131
    Plugin Contributions
    0

    Default Re: Re-direct viewers till my sites ready?

    i want to re-direct to main.html till my sites ready.
    main.html contains 'under construction' text

    My .htaccess contains text below

    DirectoryIndex main.html index.htm index.php

    This works in that main.html is what is shown.

    The problem im having now is even when i type in my index.php URL
    i get re-directed to main.htm.
    so i cant see my zencart homepage

    if i remove .htaccess, then i (and everyone else) sees my unfinished zencart index page

    Help please!
    Cookie

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Re-direct viewers till my sites ready?

    Is there a reason you don't just rename main.html to index.html, or is your server configuration such that index.html doesn't load first ?

  5. #5
    Join Date
    Jan 2010
    Posts
    131
    Plugin Contributions
    0

    Default Re: Re-direct viewers till my sites ready?

    Hi
    it was index.html
    i just changed it to 'main.html' try to fix the problem.
    re:server configuration -yes - index.html doesnt load
    if i remove the .htacces
    the server goes straight to my zencart index.php
    i just need to see this page privately

    Thanks

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Re-direct viewers till my sites ready?

    I haven't seen a server set up that way, but the only other thing I can think of would be to password-protect the site, usually doable in your hosting control panel.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 6 Nov 2013, 12:06 AM
  2. Asking Viewers questions
    By irishshopper in forum Basic Configuration
    Replies: 1
    Last Post: 2 Jun 2011, 12:50 PM

Posting Permissions

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