试试
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.

解决方案 »

  1.   

    需要你的Apache服务器支持一般需要加入下面红色的这行<Directory />
        Options Indexes FollowSymLinks
        AllowOverride All
    </Directory>
      

  2.   

    我将Apache配置文件改成
    <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很是迷茫~~!!
      

  3.   

    [Wed Oct 29 09:39:12 2008] [notice] Parent: Received shutdown signal -- Shutting down the server.
    [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里报的错!请问是什么问题啊?
      

  4.   

    在http.conf中找到这一行“LoadModule rewrite_module modules/mod_rewrite.so”,把前面的注释去掉