呵,我想找人帮我解决个问题 
我想把我的主页改成   www.cqwle.com 
论坛的地址改成      www.cqwle.com/bbs
像文章的地址改成   www.cqwle.com/article1.html
帖子的写成  www.cqwle.com/bbs/forum-1-1.html

解决方案 »

  1.   

    如果改上面的比较简单,修改访问路劲即可,下面的就需要改动程序,做个url的伪静态处理就ok
      

  2.   

    URL重写,一般来说由你的WEB SERVER决定,如果用的是APACHE:Apache php URL 重写配置:1、LoadModule rewrite_module modules/mod_rewrite.so 启动(将前面的#去了)2、修改<Directory />    Options FollowSymLinks    AllowOverride All    Order deny,allow    Deny from all</Directory>AllowOverride none 改为 All3、重启Apache4、在htdocs(网站目录结构下)的目录下建立一个 .htaccess (这个在windows无法创建,可以通过DOC来创建,不过我去找了一个文件这样的文件)示例1:为了方便测试,我在htdocs目录下建立一个product.php的文件<?php       echo "You have selected product #". $_GET["id"];?>http://localhost:8070/product.php?id=2;Result:You have selected product #2;如果我要实行这个效果:http://localhost:8070/product.htmlRewriteEngine on 这个要打开啊。RewriteRule ^product\.html$ product.php?id=123Result: You have selected product #123http://localhost:8070/product/p123.htmlRewriteRule ^product/p([0-9]*)\.html$ product.php?id=$1 [L]Result: You have selected product #123http://seophp.example.com/product.php?category_id=2&product_id=1 实现这样的URl<?php       echo "You have selected product # ". $_GET["id"];       echo "You have selected product category # ". $_GET["cid"];?>RewriteRule ^Products/C([0-9]*)/P([0-9]*)\.html$ /product.php?category_id=$1&product_id=$2 [L]http://localhost:8070/product/tools-c1234/tool-p123.htmlRewriteRule ^product/.*-c([0-9]+)/.*-p([0-9]*)\.html$   /product.php?cid=$1&id=$2 [L]