开发者

Insert SEO friendly dynamic data into HTML without Javascript

I have some static websites. By static I mean all the pages are simple HTML without JavaScript (all the data are hard-coded).

I have a server side program that creates dynamic data that I'd like to insert into my static sites. By dynamic I mean the data changes very often.

How should I do this?

Here is a scenario: On the server side my p开发者_如何学Pythonrogram generates the current time-stamp in every millisecond. When a user open one of my static sites the page gets the current time-stamp from the server and render it. I'd like it to work with search engines, so I can't use JavaScript.


It's not possible to change the HTML structure client side without Javascript, so your solution is to add some handler server side for files with .htm and .html extensions.

About JS: Please note that most spiders (if not all) won't be able to see data rendered by javascript since most of them are analyzing the plain HTML that is returned by the server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜