Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Pages created but not found

Quote Reply
Pages created but not found
I've finally gotten Links 2 to work, although I'll have to change permissions on all the files to 777 before I can rebuild the links (or add that to the build), but here's my problem (and yes, I've done a search and no, nothing seemed to work or didn't seem to apply).

When I try to view the link pages in a browser, I get a page not found. The permissions are set to 644, owner is digitalartlinks (me), group is www.

The pages aren't in the cgi-bin, they are in htdocs/links/.

The problem seems to be that the links generated are to http://www.digitalartlinks.com/htdocs/links/ when they need to be http://www.digitalartlinks.com/links/, etc.

My question is, how do I tell Links2 to build the files in htdocs/links/ and sub-folders, but to reference just links/ when building the urls?

Is this the way to do it:

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/usr/local/apache/www/digitalartlinks.com/htdocs/links";
$build_root_url = "http://www.digitalartlinks.com/links";

Oh, and is there a way to chmod the permissions recursively down through my links directories? Like a .pl file or something I can add in my cgi-bin?

TIA
-darlisa

http://www.fignations.com
Quote Reply
Re: [riggsd] Pages created but not found In reply to
Its definatly the path that is the problem. Are you definate 'htdocs' is needed in the path? It sounds like its an extra folder Unsure

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Pages created but not found In reply to
In Reply To:
Its definatly the path that is the problem. Are you definate 'htdocs' is needed in the path? It sounds like its an extra folder Unsure

Cheers


htdocs is required in order for the pages to be created in the right folder, however, its not needed for links. The way they have the server set up is by having htdocs in my root directory and all files go in there. So, when I give out the main url of http://www.digitalartlinks.com, visitors are really seeing http://www.digitalartlinks.com/htdocs/index.html, although the user doesn't know that, but my host's server does (and you'll get a file not found if you click on that second link).
-darlisa

http://www.fignations.com
Quote Reply
Re: [Andy] Pages created but not found In reply to
Okay, I changed the path and it worked, but now have two more problems.

First, the links created that go to the index files end at the directory name and my host doesn't allow that. How do I get the html file name to be created as part of the link?

For example, have the link to this page - http://www.digitalartlinks.com/links/3D_Programs/ show up as http://www.digitalartlinks.com/...Programs/index2.html when the links are generated.

In addition, the links aren't generating properly, but I think that's because I forgot to change something in the templates from my old site templates. See page below for example.

http://www.digitalartlinks.com/...an_Skies/index2.html
-darlisa

http://www.fignations.com
Quote Reply
Re: [riggsd] Pages created but not found In reply to
okay, changed the index2 to index, now just have to get the templates working properly so the links are generated right.
-darlisa

http://www.fignations.com