试试
RewriteEngine on
RewriteRule ^page/([^/]+)$ /index.php?id=$1访问 http://yourdomainname/page/1 就是访问 http://yourdomainname/index.php?id=1
boxoft.biz...Great software service from China.
RewriteEngine on
RewriteRule ^page/([^/]+)$ /index.php?id=$1访问 http://yourdomainname/page/1 就是访问 http://yourdomainname/index.php?id=1
boxoft.biz...Great software service from China.
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
<Directory />
Options Indexes FollowSymLinks
AllowOverride All
</Directory>可是重启Apache后...服务器不能正常运行!~~
请教什么原因!是我的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.0.59 (Win32) PHP/5.2.5 Server at localhost Port 80很是迷茫~~!!
[Wed Oct 29 09:39:12 2008] [notice] Child 500: Exit event signaled. Child process is ending.
[Wed Oct 29 09:39:13 2008] [notice] Child 500: Released the start mutex
[Wed Oct 29 09:39:14 2008] [notice] Child 500: Waiting for 250 worker threads to exit.
[Wed Oct 29 09:39:14 2008] [notice] Child 500: All worker threads have exited.
[Wed Oct 29 09:39:14 2008] [notice] Child 500: Child process is exiting
[Wed Oct 29 09:39:14 2008] [notice] Parent: Child process exited successfully.
[Wed Oct 29 09:39:17 2008] [notice] Apache/2.0.59 (Win32) PHP/5.2.5 configured -- resuming normal operations
[Wed Oct 29 09:39:17 2008] [notice] Server built: Jul 27 2006 15:55:03
[Wed Oct 29 09:39:17 2008] [notice] Parent: Created child process 1024
[Wed Oct 29 09:39:17 2008] [notice] Child 1024: Child process is running
[Wed Oct 29 09:39:17 2008] [notice] Child 1024: Acquired the start mutex.
[Wed Oct 29 09:39:17 2008] [notice] Child 1024: Starting 250 worker threads.
[Wed Oct 29 09:39:27 2008] [alert] [client 127.0.0.1] E:/wampp2/workspace/www/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
[Wed Oct 29 09:39:28 2008] [alert] [client 127.0.0.1] E:/wampp2/workspace/www/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
这是error.log里报的错!请问是什么问题啊?