大型网站,需要做一些重大的文件重新排列... [英] Large web site, need to do some major rearrangement of files...

查看:61
本文介绍了大型网站,需要做一些重大的文件重新排列...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我帮助管理一个大型网站,一个超过
600 html页面...这是一个火腿无线电的参考站点

人们和作为一个例如,一页索引

1.8 gb的在线PDF文档。


该网站的结构为颠倒的树,并且

(如果我没记错的话)从不超过4个级别。


网站基本上增长了(就像匍匐的黑色斑点)...

所有的页面都是在记事本上创建的,最后是

10年。


我们现在不得不重新安排网站,并发现

我们必须将整个页面文件夹移动到其他

位置。


很多页面都嵌入了他们的文本硬编码

链接到其他页面。另外,每个页面都有左上角的

(并在左下角重复

一角)一到三个硬编码链接的级别

高于它。


移动一个索引页需要编辑指向它的所有内容

,并移动一个词汇表

页面需要编辑超过100页(分散在几乎每个文件夹中的
)指向它。


我''已被告知使用Microsoft FrontPage,因为它允许

当您更改或移动页面

时自动更新其他链接。其他人说Dreamweaver

会做到这一点。其他人说过Hot Metal Pro。会做到这一点,

或Adobe GoLive。


上面唯一一个我有权访问过的实验
实验是Front Page,经过一段时间的实验和b $ b后,我已经判断它不是一个选项

,因为典型的微软BLOAT。它会产生比它解决的问题更多的问题。


我们的每一个页面都是精简的,意思是html,我找到了

,你可以将任何一个页面吸入FP-2000(我有权访问的

版本),它立即重新格式化

它和那里没有选择来防止这种情况。


我的实验已经解决了这个问题:你吮吸了一个页面文件,

将页面标记为已被更改(即使是只需在某个地方添加

一个字符,即使是在元标记中)然后保存页面上的
,你会发现它的大小是三倍大小...

(主要是因为添加了分区,样式和字体标签

在你的背后)。 _这是无法接受的_。也许这个

的行为已经在FP-XP或一些替代品中得到修复,

我不知道。


我们的观众是超过60%的拨号和下载速度很重要(这就是为什么我们手动编辑所有内容并使用

主要是html 3标准)。


其他人如何管理大型网站

如何更改影响许多其他文件夹的页面

和网站内的页面?

I help manage a large web site, one that has over
600 html pages... It''s a reference site for ham radio
folks and as an example, one page indexes over
1.8 gb of on-line PDF documents.

The site is structured as an upside-down tree, and
(if I remember correctly) never more than 4 levels.

The site basically grew (like the creeping black blob) ...
all the pages were created in Notepad over the last
10 years.

We''re now having to re-arrange the site, and find that
we have to move entire folders of pages to other
locations.

Many pages have embedded in their text hard-coded
links to other pages. In addition, every page has, in
the upper left corner (and repeated in the lower left
corner) one to three hard-coded links the the level(s)
above it.

Moving one index page requires editing everything
that points to it and from it, and moving a glossary
page would require editing over 100 pages (scattered
across almost every folder) that pointed to it.

I''ve been told to use Microsoft FrontPage as it allows
you to automatically updating other links when a page
is changed or moved. Others have said that Dreamweaver
will do it. Others have said that "Hot Metal Pro" will do it,
or Adobe GoLive.

The only one of the above that I have had access to for
experimentation is Front Page and after experimenting
with it for a while I have decioded that it is NOT an option
due to the typical Microsoft "BLOAT". It would create
more problems than it would solve.

Every one of our pages is lean and mean html, and I''ve found
that you can suck any one of the pages into FP-2000 (the
only version I have access to) and it IMMEDIATELY reformats
it and there is no option to prevent that.

My experimentation settled on this: You suck in a page file,
flag the page as having been changed (even by just adding
one character somewhere, even in a meta tag) and then save
the page and you will find that it is mote than triple the size...
(mostly due to division, style and font tags that were added
behind your back). _this is unacceptable_. Maybe this
behavior has been fixed in FP-XP or some replacement,
I do not know.

Our audience is over 60% dialup and download speed is
important (which is why we hand edit everything and use
mostly html 3 standards).

How do other folks manage large web sites with regard
to changing pages which affects many other folders
and pages within the web site?

推荐答案

" mike" < gr ***** @ gmail.comwrites:
"mike" <gr*****@gmail.comwrites:

其他人如何管理大型网站

来改变页面这影响了许多其他文件夹

和网站内的页面?
How do other folks manage large web sites with regard
to changing pages which affects many other folders
and pages within the web site?



首先,配置您的网络服务器,为

旧网址返回301 Moved Permanently。这会将对旧URL的请求重定向到新URL。如果

你正在使用Apache,你可以使用RedirectPermanent指令。


现在,应用squeaky wheel规则。观察您的网络服务器日志,看看哪些
重定向受到最频繁的影响,以及他们的推荐人是什么。那些

推荐人(假设他们是你的页面)将是你想要更新的页面




另一个有理由观看这些推荐人:可能存在深层链接。从out-

那边你的网站导致你移动的页面。出于礼貌,你可以让那些人知道他们需要更新他们的链接。


301重定向只需要额外的一秒钟,甚至在拨号上 -

up,所以你不必感到有压力在同一时间找到并修复

的每个最后一个链接。这种压力经常导致匆忙的工作,这导致错误。


就实际编辑而言,我是Mac伙计,所以我不熟悉

足够使用Windows软件来提出具体建议。正如你提到的b $ b,你想要避免任何重写你的代码的东西。

。除此之外,任何可以进行多文件搜索和编辑的编辑器都可以替换将

是一个很大的帮助。


sherm--


-

West Virginians为西弗吉尼亚人提供的虚拟主机服务: http://wv-www.net

Perl中的Cocoa编程: http://camelbones.sourceforge.net


在我们的上一集中,

< 11 **************** ****** @ a75752000cwd.googlegroups .com>,comp.infosystems上可爱且有趣的麦克风播放。 www.authoring.html:
In our last episode,
<11**********************@a75g2000cwd.googlegroups .com>, the lovely and
talented mike broadcast on comp.infosystems.www.authoring.html:

其他人如何管理大型网站

改变页面影响许多其他文件夹

和网站内的页面?
How do other folks manage large web sites with regard
to changing pages which affects many other folders
and pages within the web site?



要维护这样的网站,我认为你需要一些

a数据库和脚本或预处理语言的组合。


这将允许您在页面模板中以符号方式引用链接,

根据需要更改数据库中的链接,并使用

生成页面脚本或预处理语言。对于脚本/预处理

组件,主要选择是perl和PHP。尽管PHP被广泛用于动态生成页面,但它也可以用作离线

预处理器(CLI ---命令行界面)。 PHP和perl都支持各种数据库,其中一个数据库很可能适用于你的平台。 make utilitity对于跟踪

依赖关系也非常方便,因此您只需重新生成那些实际受

特定更改影响的页面,而不必为每个重新生成整个站点

变化不大。


-

Lars Eighner< http://larseighner.com/< http:/ /myspace.com/larseighner>

倒计时:730天。


To maintain a site like that I think you need some combination of
a database and a scripting or preprocessing language.

This would allow you to refer to links symbolically in page templates,
change the links as necessary in your database, and generate pages with the
scripting or preprocessing language. For the scripting/preprocessing
component, the major choices are perl and PHP. Although PHP is widely used
to generate pages dynamically, it can also be used as an offline
preprocessor (CLI --- command line interface). Both PHP and perl have
support for a variety of databases, one of which is likely to be suitable to
your platform. A make utilitity is also very handy for keeping track of
dependencies so you need only regenerate those pages actually affected by
particular changes instead of having to regenerate the whole site for every
little change.

--
Lars Eighner <http://larseighner.com/ <http://myspace.com/larseighner>
Countdown: 730 days to go.


2007-01-21,迈克< gr ** ***@gmail.com写道:

[snip]
On 2007-01-21, mike <gr*****@gmail.comwrote:
[snip]

许多页面嵌入了他们的文字硬编码

链接到其他页面。另外,每个页面都有左上角的

(并在左下角重复

一角)一到三个硬编码链接的级别

高于它。


移动一个索引页需要编辑指向它的所有内容

,并移动一个词汇表

页面需要编辑指向它的100多页(几乎每个文件夹分散

)。
Many pages have embedded in their text hard-coded
links to other pages. In addition, every page has, in
the upper left corner (and repeated in the lower left
corner) one to three hard-coded links the the level(s)
above it.

Moving one index page requires editing everything
that points to it and from it, and moving a glossary
page would require editing over 100 pages (scattered
across almost every folder) that pointed to it.



[snip]

[snip]


其他人如何管理大型网站

更改影响许多其他文件夹的页面

和网站内的页面?
How do other folks manage large web sites with regard
to changing pages which affects many other folders
and pages within the web site?



我们不知道确切的细节,但是你想要的东西很容易用Python中的
a短脚本,Tcl, Perl等,甚至是强大的文本

编辑器就像vim。


如果你不知道这些工具,任何时间都花在学习上任何

他们会很快收回成本。

We don''t know exact details, but what you want is fairly easy to do with
a short script in Python, Tcl, Perl etc., or even with a powerful text
editor like vim.

If you don''t know any of those tools, any time spent learning any of
them will quickly pay for itself.


这篇关于大型网站,需要做一些重大的文件重新排列...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆