If index.html doesn't load when you go to a directory, that's a server configuration matter -- either change the server config or change the name of the index file to index.htm, since it's bound to recognize one or the other.
To be more specific, I see that this situation is presented only beneath the directory were wsnlinks is installed. Out of the wsnlinks directory this problem is not presented, index.html or index.php is automatically showed.
Under the directory were wsnlinks is installed, the 'badrequest.tpl' is showed whenever I enter to a directory without writing index.html or index.php or index.htm (excep for the admin directory). It would be ideal to look for index file inside the directory before presenting the badrequest.tpl . Is it a way to configure this ?
I guess your .htaccess is doing that -- copy what it does in there for the admin directory to have your new directory go to directory/index.html . A bit unusual to be running mod_rewrite and static html at the same time, but I gather you must be doing so.
You were right, that was the cause of this issue. Thanks.
Working with the custom templates, I find that the custom wrapper template is not used by the HTML Generator.
I state:
Use these custom templates (make blank in order to use standard templates): Wrapper: html_wrapper Main index: html_main Categories: html_displaylinks Link Details: html_viewcomments Threads:
But he html_wrapper.tpl is not used, instead the normal wrapper.tpl from my templates directory is used.
The other custom templates: html_main ; html_displayllinks ; html_details are being correctly used for the static page generator as stated. (ver. 3.4.3)
Also,
When generating HTML the 'personal link lists' are also generated. I would like not to generate them as it takes too long to generate them, and also I see them part of the dynamic side of the directory. How could I disable generating the personal link list ?
I do not find to have a double trailing slash typed in the url prefix.
Having a single trailing slash is your problem, you're not supposed to. I'll start auto-chopping it from there and the directory url though for people who keep typing a slash.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on guidance
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Paul,
-Accesing an html static generated folder like:
www.mydomain.com/wsnlinks/h...tic/MY_STATIC_FOLDER_NAME/
The index.html or index.php is not displayed, but the 'page not exist' mesage is displayed.
-Accesing to:
www.mydomain.com/wsnlinks/h...TIC_FOLDER_NAME/index.html
Works fine.
Would it be a dificulty of the server not to redirect to index.html or index.php inside my static generated folders ?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
If index.html doesn't load when you go to a directory, that's a server configuration matter -- either change the server config or change the name of the index file to index.htm, since it's bound to recognize one or the other.
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Paul,
To be more specific, I see that this situation is presented only beneath the directory were wsnlinks is installed. Out of the wsnlinks directory this problem is not presented, index.html or index.php is automatically showed.
Under the directory were wsnlinks is installed, the 'badrequest.tpl' is showed whenever I enter to a directory without writing index.html or index.php or index.htm (excep for the admin directory). It would be ideal to look for index file inside the directory before presenting the badrequest.tpl . Is it a way to configure this ?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I guess your .htaccess is doing that -- copy what it does in there for the admin directory to have your new directory go to directory/index.html . A bit unusual to be running mod_rewrite and static html at the same time, but I gather you must be doing so.
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
You were right, that was the cause of this issue. Thanks.
Working with the custom templates, I find that the custom wrapper template is not used by the HTML Generator.
I state:
Use these custom templates (make blank in order to use standard templates):
Wrapper: html_wrapper
Main index: html_main
Categories: html_displaylinks
Link Details: html_viewcomments
Threads:
But he html_wrapper.tpl is not used, instead the normal wrapper.tpl from my templates directory is used.
The other custom templates:
html_main ; html_displayllinks ; html_details
are being correctly used for the static page generator as stated. (ver. 3.4.3)
Also,
When generating HTML the 'personal link lists' are also generated. I would like not to generate them as it takes too long to generate them, and also I see them part of the dynamic side of the directory. How could I disable generating the personal link list ?
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Just to comment that on the static generated directory, the link to the
link details is generated with double // before the link_details file.
Curiously this happen selecting: use subdirectories selected to yes, but it does not happen not using subdirectories.
the details link is written as:
www.mysite.com/static_side/MY_STATIC_FOLDER_NAME//link_details72.html
I do not find a way to generate it only with one / :
At the custom link details file, html_details.tpl, I have tested the link details written as:
<a href="link.php?action=detail&id= {LINKID} ">{LANG_GENERAL_DETAILS}</a>
or
<a href="{DIRURL}/link.php?action=detail&id= {LINKID} ">{LANG_GENERAL_DETAILS}</a>
but it continues writting the link to details with // .
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
But he html_wrapper.tpl is not used, instead the normal wrapper.tpl from my templates directory is used.
Confirmed and fixed.
How could I disable generating the personal link list ?
You can't.
I do not find a way to generate it only with one / :
You must have a trailing slash typed where you shouldn't in the url prefix.
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Paul,
The double // issue before the link_details file continues,
tested with default template set at my local PC, WSN Links ver 3.4.6,
I do not find to have a double trailing slash typed in the url prefix.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I do not find to have a double trailing slash typed in the url prefix.
Having a single trailing slash is your problem, you're not supposed to. I'll start auto-chopping it from there and the directory url though for people who keep typing a slash.