Gossamer Forum
Home : Products : Links 2.0 : Customization :

DEFAULT PAGE FOR A DOMAIN. HOW ????

Quote Reply
DEFAULT PAGE FOR A DOMAIN. HOW ????
As I can do so that the first page (home.html) it is reconstructed as " index.htm "?

Like this:

Today, she is of this way:
http://www.chan.com/links/pages/

It would like that was like this:
http://www.chan.com

Best explaining, I want that when the people enter in my domain,
see the page " home.html " as being " index.htm ".

Thanks !!!!

Ana P.P. Souza
Quote Reply
Re: DEFAULT PAGE FOR A DOMAIN. HOW ???? In reply to
Did you try changing the following codes:

Code:
$build_root_path = "/alex/links/pages";
$build_root_url =
"http://localhost/links/pages";

in links.cfg to the root directory of your account???

Example:

Code:
$build_root_path = "/path/to/myaccount";
$build_root_url = "http://localhost";

A point of clarification: home.html is the template file that you use to edit index.extension. Extension is what you set-up in the links.cfg file in the following variable:

$build_extension

Try it and see if it works.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited August 04, 1999).]

[This message has been edited by Eliot (edited August 04, 1999).]
Quote Reply
Re: DEFAULT PAGE FOR A DOMAIN. HOW ???? In reply to
there is a index page variable.. like index.html default.html etc.. all in the links.cfg

gerardo.. you should use a permanent redirection in your htaccess.. this line:

Code:
Redirect /links/pages/ http://www.domain.com/

should redirect everything.. all the links should still work..

and all you would need to do is change your links.cfg as stated above..

jerry
Quote Reply
Re: DEFAULT PAGE FOR A DOMAIN. HOW ???? In reply to
I got a question.


I am currently building like this.


www.domain.com/links/pages/

The reason is, is because I have built a site
with over a 1,000 links on it and I just don't want to take the site down and build links like this.


www.domain.com

as it would probably create a panic since users are submitiing their own URL, which again is done by hand.


now for the question;

If I continue to build like;

www.domain.com/links/pages/

and after I'm all done can I reconfigure "links.cfg" to make the

"Home" base

www.domain.com

This wil of course mean that I'll have to take all the folders links created and put them in the top directory.

Question 2, will it effect the building process if I do this.

Or is there an easier way that the suggestion above as U tried that but only the index.html in links pages actually linked back to the main domain page.

When i did a search and clicked on "Home" it lead me to this address.

www.domain.com/links/pages/

which is what I don't want.

Is there something I could be doing wrong?


Thanks
Quote Reply
Re: DEFAULT PAGE FOR A DOMAIN. HOW ???? In reply to
If you change the build root path and URL, it will recreate everything... folders, links, etc. The only thing you will have to do is delete the old folders. With 1000 links already in the DB, I don't know if the rebuild will timeout, in which cae you would have to do a staggered build.
Quote Reply
Re: DEFAULT PAGE FOR A DOMAIN. HOW ???? In reply to
htaccess, I don't have or it does not work because I have the cgiwrap thing, I think?

I don't want to use the index.html that builds (comes with) links.

Ex: /links/pages/

then we see the index.html file in there, but that's not the one I want to use so I don't think this is going to work.

I have created my own index.html file that I'd prefer to use.

Is there anyway to keep links as is:

ex: /links/pages/index.html

but have the "Home" on every page refer back to www.domain.com even when a users uses the search? That would be easier for me, than changing the links.cfg file




I have planned out my directory by category but I don't want to use the default index.html that comes with links because if for some reason you need to change something it refers back to it's default settings. Is that correct, seems so?

I have a site where I have to move 1,000 built "HTML" links (lucky me) and I'm just trying to get advice on which route I should follow before I continue building on the category structure, and manually move the links into the links program.

Maybe I'm just tired, or just plain stupid.

What would anybody else do? I did try the above but links gave me it's index.html which is hard for me to deal with.


Thanks Gerardo
Quote Reply
Re: DEFAULT PAGE FOR A DOMAIN. HOW ???? In reply to
Never mind, I figured it out. Thanks everyone.
:-)