现有静态网页改成动态网页怎么做?(静态网页如何制作,关键词优化)

时间:2024-04-30 09:15:51 作者 : 石家庄SEO 分类 : 关键词优化
  • TAG :

    %E7%8E%B0%E6%9C%89%E9%9D%99%E6%80%81%E7%BD%91%E9%A1%B5%E6%94%B9%E6%88%90%E5%8A%A8%E6%80%81%E7%BD%91%E9%A1%B5%E6%80%8E%E4%B9%88%E5%81%9A%EF%BC%9F

伪静态实现的原理就是 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示例:[ISAPIRewrite]RepeatLimit 32# Block external access to the httpd.ini and httpd.parse.errors filesRewriteRule /httpd(?:.ini|.parse.errors). / [F,I,O]# Block external access to the Helper ISAPI ExtensionRewriteRule ..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

本文:现有静态网页改成动态网页怎么做?的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:有不改灯直接换LED灯泡的吗下一篇:

26 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18