apache rewrite菜鸟有关问题集锦,高手来看看

apache rewrite初学者问题集锦,高手来看看啊

apache   rewrite初学者问题集锦,高手来看看啊

1.怎样确认apache加载了rewrite模块?

在httpd.conf里面去掉LoadModule   rewrite_module   modules/mod_rewrite.so前面的#,重启没有报错.

这样检查rewrite加载了?

2.还需要加载什么?是不是这样就可以在目录里面直接应用.htaccess文件了?

3.应用.htaccess文件的时候是否一定要在根有一个.htaccess文件?

例如:

webroot

–aa

–bb

如果只想在aa下应用.htaccess需要不需要在根(webroot)下建立.htaccess文件?

4.哪种url串对搜索引擎最友好?

http://www.xxx.com/value1/value2/

http://www.xxx.com/value1_value2.html

http://www.xxx.com/value1_value2.php

http://www.xxx.com/value1,value2.html

http://www.xxx.com/index.php/value1/value2/



mark




1.怎样确认apache加载了rewrite模块?

在httpd.conf里面去掉LoadModule rewrite_module modules/mod_rewrite.so前面的#,重启没有报错.

这样检查rewrite加载了?

=================

在编译的时候要加入rewrite.so参数

./configure –enable-rewrite –enable-so

2.是的

3.是的

4. 2.3.4比较适合搜索引擎 不过1的方式比较适合URL重组




好东西,收藏




up up up upup upup upup upup upup upup upup up

apache rewrite菜鸟有关问题集锦,高手来看看

相关文章:

你感兴趣的文章:

标签云: