 | |  |
 |

tribulatio
User
Sep 6, 2003, 4:34 AM
Post #1 of 3
(3347 views)
Shortcut
|
|
Right way of publishing outside of the root
|
Can't Post
|
|
Until now, I have used NM publishing in the root directory, but I have decided now to publish rather in a subdirectory, combining it with the use of SSI. So I republished everything in shtml (and was careful to change also index.html to index.shtml, and then created a SSI redirect page (I don't know if this is the correct name!) in the root: I erased index.html in the root directory, and created instead a index.shtml page with the content: <!--#include virtual="/b/index.shtml" --> Works perfectly: if I type on www.mydomain.com, it opens automatically the index page. But, strangely, the news items themselves - despite republishing all - are still linked to the root directory, i.e.: mydomain.com/news_54.shtml, etc. The new have been published in the subdirectory too, and if I type mydomain.com/b/news_54.shtml, I find the items there too. But if I click on any news item on the welcome page, it still brings me to the root, and not to the subdirectory. Of course, if I go to .../b/index.shtml, I then access the news in the correct way .../b/news.54.shtml. I first thought I had left the original index.shtml in the root, but not at all: the index.shtml in the root has only the redirect, and no other content. So I don't understand how it can lead me to the news in the root instead of the news in the subdirectory. Or maybe the way of publishing in a subdirectory is different from Article Manager - I have more experience with AM, but it seems that generally NM is working in the same way. Any clarification would be welcome! Sincerely. Tribulatio
|
|
|  |
 |

Benjamin
Staff

Sep 6, 2003, 10:17 AM
Post #2 of 3
(3343 views)
Shortcut
|
|
Re: [tribulatio] Right way of publishing outside of the root
[In reply to]
|
Can't Post
|
|
Hi Tribulatio! Nice to hear from you. :-) The problem is that the since News Manager knows the publish directory for both the index file and all the news articles will be in the same directory, it uses a relative link to point to the articles. Specifically, the $url$ placeholder is just replaced with the name of the file. So, what you'll need to do is in your _index.html template, change $url$ to b/$url$ for each of the links. Then it will link correctly to the full article. Admittedly, the name placeholder name $url$ is a little misleading. I've registered this as a bug / suggestion to change the value of the placeholder to contain the full URL of the news article. Hope you're doing well. :-) Ben interactivetools.com
|
|
|  |
 |

tribulatio
User
Sep 6, 2003, 10:35 AM
Post #3 of 3
(3339 views)
Shortcut
|
|
Re: [tribulatio] Right way of publishing outside of the root
[In reply to]
|
Can't Post
|
|
Thank you very much for your helpfulness once again, this makes sense indeed. Tribulatio
|
|
|  |
|