duanpuchun5275 2013-03-30 01:57
浏览 54
已采纳

ubuntu 12.10上的.htaccess文件设置

as soon as i save these .htaccess file on my server i got a error 500 internal server error, any idea how can i resolve it. the other issue for some reason these .htaccess file works on the tutorial i was watching http://www.youtube.com/watch?feature=player_embedded&v=Aw28-krO7ZM#at=130

<IfModule mod_rewrite.c>
   RewriteEngine On

   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-l

   RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
<IfModule>
  • 写回答

1条回答 默认 最新

  • douqianzha6213 2013-04-01 22:43
    关注

    First error:

    Module mod_rewrite was not enabled in Apache. After you enable it - the error was gone and website start working.

    To enable the module edit apache’s httpd.conf file and make sure this line is there uncommented:

    LoadModule rewrite_module modules/mod_rewrite.so
    

    after installation mod_rewrite on your system.

    Second error:

    Change last line of .htaccess file to:

    </IfModule>
    

    I hope I helped.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度