如何将一个静态网页转换成动态网页?

谁能帮帮我。。不知道怎么做。。QQ742488549

第1个回答  推荐于2016-05-29
伪静态实现的原理就是 index.php?act=about&cid=1 将这种形式的动态路径用 about-1.html 这种形式输出,根据不同的服务器环境,配置方法也不太一样,PHP+iis6的话就要配置httpd.ini文件,php+iis7就要配置web.config,PHP+apache就要配置.htaccess文件
.htaccess规则示例:
RewriteEngine on

RewriteRule ^/?(index|guestbook|online)\.html$ index\.php [L]
RewriteRule ^/?(eindex)\.html$ index\.php?act=$1 [L]
RewriteRule ^/?(index|guestbook|online)-([0-9]+).html$ index\.php\?p=$2 [L]
RewriteRule ^/?([a-z0-9]+)_([0-9]+).html$ index\.php\?act=$1&id=$2 [L]
RewriteRule ^/?([a-z0-9]+)-([0-9]+).html$ index\.php\?act=$1&cid=$2 [L]
RewriteRule ^/?([a-z0-9]+)-([0-9]+)-([0-9]+).html$ index\.php\?act=$1&cid=$2&p=$3 [L]

httpd.ini示例:
[ISAPI_Rewrite]
RepeatLimit 32
# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]
# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp / [F,I,O]
RewriteRule ^/(index|guestbook|online)\.html$ /$1\.php
RewriteRule ^/(eindex).html$ /index\.php\?act=$1
RewriteRule ^/(index|guestbook|online)-([0-9]+).html$ /$1\.php\?p=$2
RewriteRule ^/([a-z0-9]+)_([0-9]+).html$ /index\.php\?act=$1&id=$2
RewriteRule ^/([a-z0-9]+)-([0-9]+).html$ /index\.php\?act=$1&cid=$2
RewriteRule ^/([a-z0-9]+)-([0-9]+)-([0-9]+).html$ /index\.php\?act=$1&cid=$2&p=$3
第2个回答  2010-05-22
这个必须要用到编程语言了,常用的有asp jsp php asp.net,建议你学php,简单而实用,我也正在学习本回答被提问者采纳
第3个回答  2010-05-21
请问您所谓的动态是指页面呈动态效果还是能自主动态处理网页数据?
前者可以选择制作FLASH让页面更富动感,后者可以参考一些动态网页语言例如:ASP/PHP。
第4个回答  2010-05-20
静态网页和动态网页主要区别是,静态网页在客户端访问你网页的人不能互动,不能相互交流,动态的网页能。
第5个回答  2021-01-27

如何制作静态网站着陆页 如何导出静态模板 如何下载静态网页