Webmastersite.net
Register Log In

guidance
replacing spaces on generate static HTML

Comments on guidance

peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
#16 - Quote - Permalink
Posted Sep 13, 2006 - 5:08 AM:

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 ?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#17 - Quote - Permalink
Posted Sep 13, 2006 - 11:46 AM:

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.
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
#18 - Quote - Permalink
Posted Sep 13, 2006 - 7:31 PM:

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 ?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#19 - Quote - Permalink
Posted Sep 14, 2006 - 11:46 AM:

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.
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
#20 - Quote - Permalink
Posted Sep 16, 2006 - 8:35 AM:

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 ?
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
#21 - Quote - Permalink
Posted Sep 17, 2006 - 6:10 AM:

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 // .
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#22 - Quote - Permalink
Posted Oct 02, 2006 - 11:11 PM:

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.
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
#23 - Quote - Permalink
Posted Oct 21, 2006 - 2:20 AM:

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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#24 - Quote - Permalink
Posted Oct 21, 2006 - 11:40 AM:

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.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.