Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Need a blank mainpage - not zencart

Need a blank mainpage - not zencart

Views: 2,846

Results 1 to 20 of 28
18 Mar 2011, 4:35 PM
#1
znowflake avatar

znowflake

New Zenner

Join Date:
Jul 2008
Posts:
98
Plugin Contributions:
0

Need a blank mainpage - not zencart

How do i make my mainpage blank so it doesnt go to my zencart shop?
An index.html file doesnt work, so i need some help here :blink:

And this is not for maintenance, so i do need a completely new frontpage.

18 Mar 2011, 4:45 PM
#2
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: Need a blank mainpage - not zencart

Perhaps moving Zen Cart to a subfolder?

18 Mar 2011, 4:47 PM
#3
znowflake avatar

znowflake

New Zenner

Join Date:
Jul 2008
Posts:
98
Plugin Contributions:
0

Re: Need a blank mainpage - not zencart

I have more than 1 zencart website, so it already is in a subfolder..

18 Mar 2011, 4:49 PM
#4
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: Need a blank mainpage - not zencart

Then put the index in the root, and link to your Zen Cart sites.

Of course I might not have understood your needs ... would you care to elaborate?

18 Mar 2011, 4:54 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need a blank mainpage - not zencart

Do you want your domain root (yourdomain.com) to be blank, or this Zen Cart's root (yourdomain.com/yourzcfolder/)?
For most hosts, index.html trumps index.php, but yours may have reversed the priorities. In that case, you would need to put the ZC into a sub-subfolder so you could have an index.html in that "root". There might be some .htaccess method, but if so I don't know what it would be.

If your Zen Carts are in subfolders, your domain root will already not point to any of them, and yourdomain.com/index.html should work.

18 Mar 2011, 4:58 PM
#6
znowflake avatar

znowflake

New Zenner

Join Date:
Jul 2008
Posts:
98
Plugin Contributions:
0

Re: Need a blank mainpage - not zencart

The website in question needs a blank frontpage - meaning when you go to the url of this website, i want it to go to a blank page and not the zencart frontpage.

This website is one amongst many, so it has its own subfolder.

I dont know how to get the index.html to show and not the zencart front.

I hope that made sense :blush:

18 Mar 2011, 5:01 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need a blank mainpage - not zencart

Just curious - why do you think you need an HTML index page hiding your Zen Cart? What site organization are you planning that would require this?

See my comment about a sub-subfolder.

18 Mar 2011, 5:01 PM
#8
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Need a blank mainpage - not zencart

If your setup is like:

yoursite.com - root
yoursite.com/zencart - zencart
yoursite.com/someothersite - another site
etc.

then if you put a blank index.html in the root, the visitor will see nothing when he navigates to yoursite.com.

18 Mar 2011, 5:21 PM
#9
znowflake avatar

znowflake

New Zenner

Join Date:
Jul 2008
Posts:
98
Plugin Contributions:
0

Re: Need a blank mainpage - not zencart

No it doesnt work - i already tried that before i made this post.
It still goes to the zencart website.

and gjh42 - im gonna make an attempt to update my website, so i need a html frontpage where i can add things while this is going on

18 Mar 2011, 5:25 PM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need a blank mainpage - not zencart

So you want to temporarily hide your Zen Cart site? That makes sense. Are you intending to have static content in place of it while doing the work? Is there a reason why setting it to "down for maintenance" wouldn't work? Is there a reason not to leave the current site as is and upgrade a copy in another folder, then move that to replace the original when done?

18 Mar 2011, 5:31 PM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Need a blank mainpage - not zencart

Check in the root of your site for any htaccess that might be redirecting

18 Mar 2011, 5:51 PM
#12
znowflake avatar

znowflake

New Zenner

Join Date:
Jul 2008
Posts:
98
Plugin Contributions:
0

Re: Need a blank mainpage - not zencart

Yes..im likely to :oops: up everything, and i want certain products to be available even tho the site is down.

18 Mar 2011, 5:53 PM
#13
znowflake avatar

znowflake

New Zenner

Join Date:
Jul 2008
Posts:
98
Plugin Contributions:
0

Re: Need a blank mainpage - not zencart

kobra:

Check in the root of your site for any htaccess that might be redirecting

I found 1 htaccess file, but this might be a stupid question, but how do you know if its redirecting?

18 Mar 2011, 5:54 PM
#14
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need a blank mainpage - not zencart

Is there a reason not to leave the current site as is and upgrade a copy in another folder, then move that to replace the original when done?

Post the .htaccess here, and someone will be able to tell what it is doing.

18 Mar 2011, 6:12 PM
#15
znowflake avatar

znowflake

New Zenner

Join Date:
Jul 2008
Posts:
98
Plugin Contributions:
0

Re: Need a blank mainpage - not zencart

Ok i was wrong...i found more than 1 - what do i do now?

The one i looked at said the following :

*# This is used with Apache WebServers

The following blocks direct HTTP requests in this directory recursively

For this to work, you must include the parameter 'Limit' to the AllowOverride configuration

Example:

#<Directory "/usr/local/apache/htdocs">

AllowOverride Limit

'All' with also work. (This configuration is in your apache/conf/httpd.conf file)

This does not affect PHP include/require functions

Example: http://server/catalog/includes/application_top.php will not work

<Files .php>
Order Deny,Allow
Deny from all
</Files>

18 Mar 2011, 6:26 PM
#16
luciano9876 avatar

luciano9876

New Zenner

Join Date:
Jan 2011
Posts:
26
Plugin Contributions:
0

Re: Need a blank mainpage - not zencart

I am still building my shop, so I don't want any visitors at all while I am fiddling with it, nor do I want wrong content to be indexed. So I made it totally inaccessible for anyone but me:

.htaccess in your root directory:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
 
RewriteCond %{REMOTE_HOST} !^YOUR_IP_ADDRESS
RewriteCond %{REQUEST_URI} !^/503\.php [NC]
RewriteRule .* /503.php

and a 503.php in your rootdirectory:

<?php
ob_start();
header('HTTP/1.1 503 Service Temporarily Unavailable');
header('Status: 503 Service Temporarily Unavailable');
header('Retry-After: 86400');
header('X-Powered-By:');
?><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>503 Service Temporarily Unavailable</title>
</head><body>
<h1>Service Temporarily Unavailable</h1>
<p>The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.</p>
</body></html>

The Retry-after: is value in seconds, adjust to own needs.

18 Mar 2011, 6:46 PM
#17
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need a blank mainpage - not zencart

RewriteCond %{REMOTE_HOST} !^YOUR_IP_ADDRESS

Note that if your ISP gives your home computer a shared/dynamic IP address, it can change without warning, and you will be locked out of your site.

18 Mar 2011, 6:53 PM
#18
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need a blank mainpage - not zencart

So it's not really a currently active site... "down for maintenance" will keep people from accessing it while you work. If it's not an active site yet, are you just trying to have "teaser" product info available until there is a site to buy from? You could even put that info in the down for maintenance page content instead of the standard cute graphic.

18 Mar 2011, 7:34 PM
#19
znowflake avatar

znowflake

New Zenner

Join Date:
Jul 2008
Posts:
98
Plugin Contributions:
0

Re: Need a blank mainpage - not zencart

I dont want a not available page or a down for maintenance page but a blank page.

I cant get it to work with a simple index.html and from what i can read i basically just need to add a .htaccess file to the root directory...fair enough...but i dont have a clue as to what the file needs to say to make me able to display an index.html page. :(

18 Mar 2011, 7:54 PM
#20
lindenboy avatar

lindenboy

New Zenner

Join Date:
Feb 2011
Location:
Indianapolis, IN
Posts:
38
Plugin Contributions:
0

Re: Need a blank mainpage - not zencart

Might be simplifying this too much, but can't you just edit the "down for maintenance" page to be blank? Or change it however you want to look with whatever links you want?