但是前天刚装上的时候,实现静态化的时候老是实现不了,只要把.htaccess 的文件上传到到blog所在目录。开网页就是500错误。
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, 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.
刚开始的时候老以为主机问题,因为程序以前玩过,很顺利的实现过静态化。
无奈中只有用boblog的“基于PHP自身的URL优化”,结果用FTP到服务器的POST文件夹一看,都是生成的.PHP文件。。。
汗死我。
今天无聊无意间逛到BOBLOG,看到一个文档,说是要有page目录。
于是试着新建了个PAGE文件夹,权限777.把.htaccess 传到根目录竟然可以了。
很奇怪的问题。。
估计是这段代码吧。引用到这种文件夹了貌似。
引用
RewriteRule ^page/([0-9]+)/([0-9]+)/?$ index.php?mode=$1&page=$2 [QSA,L]
发表评论