Gossamer Forum
Home : Products : Gossamer Links : Discussions :

home page at x.com while cat. at x.com/pages/cat/

Quote Reply
home page at x.com while cat. at x.com/pages/cat/
how would do about doing home page at mydomain.com while catagories at mydomain.com/pages/subcategories?

i know it has to be in build.cgi but i could not do it right

Quote Reply
Re: home page at x.com while cat. at x.com/pages/cat/ In reply to
Hi,

It's not a simple change. I would recommend building everything to /pages/ and then either:

1. Set

DirectoryIndex index.html index.htm /pages/

in your .htaccess file in the main directory so going to yoursite.com automatically pulls up /pages/.

2. Symlink:

ln -s /full/path/to/pages/index.html /full/path/to/root/index.html

and then when you go to http://yoursite.com/, the /pages/ will automatically be pulled up.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: home page at x.com while cat. at x.com/pages/cat/ In reply to
Hi,

I did it on a different way on my site.
The home page is at http://mishpat.net and the pages are built in http://mishpat.net/law/

LinksSQL builds a home page at http://mishpat.net/law/ but non of the pages point there. The only thing I had to change was the linked title bar.

In build.pm sub build_title_linked I changed the default to the following:
$output = qq| <a href="http://mishpat.net">$top</a> :|;

Now all the pages point to http://mishpat.net as the home page, and not to http://mishpat.net/law (so all you have to do is change the URL to yourdomain.com).
The page on http://mishpat.net was manually built and is not generated by LinksSQL build (this has other advantages such as the ability to choose which subcategories appear on the home page).

- Didi



Quote Reply
Re: home page at x.com while cat. at x.com/pages/cat/ In reply to
Oh, and one other way:

3. Name your main page index.shtml and make it look like:

< !--#include virtual="/pages/index.html"-- >

=)

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: home page at x.com while cat. at x.com/pages/cat/ In reply to
i found the solution:
open nph-build.cgi and goto sub _build_home
and look for :
print "Building <a href='$CFG->{build_root_url}/$CFG->{build_index}' target='_blank'>Home Page</a>

then change {build_root_url} to the path of the directory you want your main page to be listed under

Quote Reply
Re: home page at x.com while cat. at x.com/pages/cat/ In reply to
actualy that does not work either
Quote Reply
Re: home page at x.com while cat. at x.com/pages/cat/ In reply to
Another way you can do it ... which is the way I did it, was to make xxxx.com your build directory, and then use the category_path option for all your categories.

A bit of extra work, but once you have it set up it works like a charm.

Regards,

Clint.

--------------------------
http://www.AffiliatesDirectory.com - Affiliate Programs Directory
Quote Reply
Re: home page at x.com while cat. at x.com/pages/cat/ In reply to
i'm not following you here. could you explain how you done it with more details

Quote Reply
Re: home page at x.com while cat. at x.com/pages/cat/ In reply to
Alex's suggestion about using sym links is how all my sites work. That works with both static and dynamic builds.

The other way is to use a rewrite rule. See what happens when you do:

http://linksql.com


PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: home page at x.com while cat. at x.com/pages/cat/ In reply to
How about adding an optional setup field for 'Alternative Home Page Path', if set, Links will built to the path specified, if not, build to 'build_root_url' ?

Or maybe the other way around, and offer an optional 'Alternative Category Path' ?

I suppose you then get the problem of where to put the New, Pop, Ratings and Detailed pages, oh well ... just a thought Smile

All the best
Shaun