Forums / Templates, Stylesheets, Page Layout / Static main page that doesn't call header, footer, etc, etc

Static main page that doesn't call header, footer, etc, etc

Locked

Started by tqualizer_man on 22 Nov 2006, 3:09 PM · Views: 2,443

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
22 Nov 2006, 3:09 PM
#1
tqualizer_man avatar

tqualizer_man

New Zenner

Join Date:
Nov 2006
Posts:
79
Plugin Contributions:
0

Static main page that doesn't call header, footer, etc, etc

Is there any way to use the override system so that my site can have a static main page which does not make use of the header, footer, or any template files for that matter??

T-Qualizer - The Wearable Graphic Equalizer: http://www.tqualizer.biz

22 Nov 2006, 3:14 PM
#2
jgamio avatar

jgamio

Zen Follower

Join Date:
Nov 2006
Location:
Caracas
Posts:
114
Plugin Contributions:
0

Re: Static main page that doesn't call header, footer, etc, etc

I dont sure what do you want but

You can do two things:

  1. overriding tpl_main_page.php and get ride from header and footer and another staff.

  2. write a index.html html page and link to the catalog

23 Nov 2006, 4:06 PM
#3
tqualizer_man avatar

tqualizer_man

New Zenner

Join Date:
Nov 2006
Posts:
79
Plugin Contributions:
0

Re: Static main page that doesn't call header, footer, etc, etc

Editing the call for the header and footer out tpl_main_page seems to affect the whole site, which is not suitable in this case.

The other method poses a complication, hopefully someone has a solution or another idea...if you create a static index.html, it seems most browsers will default to the index.php anyway, and you can't remove the index.php of course.

Hopefully someone out there has a solution for this one.

T-Qualizer - The Wearable Graphic Equalizer: http://www.tqualizer.biz

23 Nov 2006, 4:22 PM
#4
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: Static main page that doesn't call header, footer, etc, etc

Simply create the htaccess that reads index.html first

Open notepad.
Type in :
DirectoryIndex index.html

Upload it to your root of your site as .htaccess and voila - index.html will always be the first page anyone sees.

When the world gets in my face I say Have A Nice Day.

23 Nov 2006, 4:39 PM
#5
tqualizer_man avatar

tqualizer_man

New Zenner

Join Date:
Nov 2006
Posts:
79
Plugin Contributions:
0

Re: Static main page that doesn't call header, footer, etc, etc

Bingo. Many thanks.

T-Qualizer - The Wearable Graphic Equalizer: http://www.tqualizer.biz

23 Nov 2006, 5:22 PM
#6
tqualizer_man avatar

tqualizer_man

New Zenner

Join Date:
Nov 2006
Posts:
79
Plugin Contributions:
0

Re: Static main page that doesn't call header, footer, etc, etc

Actually..doing that seems to have made index.php restricted, and I am getting the error:

Forbidden

You don't have permission to access /index.php on this server.

permissions are set to 644, just like the index.html

Any ideas?

T-Qualizer - The Wearable Graphic Equalizer: http://www.tqualizer.biz

23 Nov 2006, 5:30 PM
#7
tqualizer_man avatar

tqualizer_man

New Zenner

Join Date:
Nov 2006
Posts:
79
Plugin Contributions:
0

Re: Static main page that doesn't call header, footer, etc, etc

Nevermind...that seems to have resolved itself.

My second part of this question is, how do I get the command index.php?main_page=index to point to index.html instead of index.php?

T-Qualizer - The Wearable Graphic Equalizer: http://www.tqualizer.biz