Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Changing my homepage from index.html to something like shop.html

Quote Reply
Changing my homepage from index.html to something like shop.html
can I change the index.html of just the homepage to shop.html,
I installed a blog which has index.php as the home page but i do not want to move my glinks to a different directory because the search engines have indexed that.

Is this possible.
Quote Reply
Re: [Dorette] Changing my homepage from index.html to something like shop.html In reply to
Hi,

Go to Setup in your Admin, then select Build Options and look for the following:

Index page to use for directories; page that is pulled when you request a directory.

build_index - YOUR PAGE
Quote Reply
Re: [rascal] Changing my homepage from index.html to something like shop.html In reply to
  
I tried, but the home page is not showing shop.html,


I actually want to chane only the homepage but keep the categories as index.html

Last edited by:

Dorette: Sep 18, 2007, 1:42 PM
Quote Reply
Re: [Dorette] Changing my homepage from index.html to something like shop.html In reply to
Currently, there's no option for changing this (I'll probably add this in a future version). You'll need to change the code (and make this change after each upgrade/update until the feature is added. If you change /path/to/admin/nph-build.cgi, around line 350, you'll see:
Code:
my $page = $CFG->{build_root_path} . "/" . $CFG->{build_index};
print $USE_HTML
? qq'Building <a href="$CFG->{build_root_url}/$CFG->{build_index}" target="_blank">Home Page</a>...\n'
: qq'Building Home Page...\n';
Change that to:
Code:
my $page = $CFG->{build_root_path} . "/" . "shop.html";
print $USE_HTML
? qq'Building <a href="$CFG->{build_root_url}/shop.html" target="_blank">Home Page</a>...\n'
: qq'Building Home Page...\n';

Adrian
Quote Reply
Re: [brewt] Changing my homepage from index.html to something like shop.html In reply to
Thanks brewt
i tried it but still not budging,
I think I forgot to mention I was using the mod rewrite so I am using dynamic pages looking like static pages
Quote Reply
Re: [Dorette] Changing my homepage from index.html to something like shop.html In reply to
I think I figured it out.

I was reading a post Andy answered and used a rewrite to change the index.html to actually read index.php

Thanks Andy

http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=297503;search_string=do%20not%20build%20home;#297503