在httpd.conf加入--enable-rewrite=shared 有关的 AllowOverride 设成 All.htaccess : # 将 RewriteEngine 模式打开 RewriteEngine On 修改以下语句中的 / 为你的网站目录地址,如果程序放在二级目录中,如/phpcms 请将 / 修改为 /phpcms RewriteBase / Rewrite 系统规则请勿修改 RewriteRule ^(.*)show-([0-9]+)-([0-9]+)\.html$ $1/show.php?itemid=$2&page=$3 RewriteRule ^(.*)list-([0-9]+)-([0-9]+)\.html$ $1/list.php?catid=$2&page=$3 RewriteRule ^(.*)show-([0-9]+)\.html$ $1/show.php?specialid=$2 连 modules/mod_rewrite.so 前的#都去除了 重启apache,刷新网页后…… Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log. --------------------------------------------------------------------------------Apache/2.2.2 (Win32) PHP/5.1.4 Server at xxxx.com Port 80怎么回事???????????????????????????????????
读APACHE 手册
与APACHE的配置有关. 你是否打开了站点的选项及加载了 rewrite 相关功能.
http://www.njhoo.com/l.php/fid.2.html?page=2能看懂吗.又是.PHP又是.HTML.又是?PAGE一个简单的URL处理而已其实就相当于L.PHP?FID=2&PAGE=2
http://www.njhoo.com/l.php/fid.2.html?page=2能看懂吗.又是.PHP又是.HTML.又是?PAGE一个简单的URL处理而已其实就相当于L.PHP?FID=2&PAGE=2这个有用吗?搜索引擎收录吗?怎么样实现呢?
有关的 AllowOverride 设成 All.htaccess :
# 将 RewriteEngine 模式打开
RewriteEngine On
修改以下语句中的 / 为你的网站目录地址,如果程序放在二级目录中,如/phpcms 请将
/ 修改为 /phpcms
RewriteBase /
Rewrite 系统规则请勿修改
RewriteRule ^(.*)show-([0-9]+)-([0-9]+)\.html$ $1/show.php?itemid=$2&page=$3
RewriteRule ^(.*)list-([0-9]+)-([0-9]+)\.html$ $1/list.php?catid=$2&page=$3
RewriteRule ^(.*)show-([0-9]+)\.html$ $1/show.php?specialid=$2 连 modules/mod_rewrite.so 前的#都去除了
重启apache,刷新网页后……
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.
--------------------------------------------------------------------------------Apache/2.2.2 (Win32) PHP/5.1.4 Server at xxxx.com Port 80怎么回事???????????????????????????????????