给人的.htaccess在localhost 500错误

编程入门 行业动态 更新时间:2024-10-26 08:28:19
本文介绍了给人的.htaccess在localhost 500错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是初学者MVC框架。我试图创建一个自己的基于教程。

他们提供的

.htaccess文件包括:

RewriteEngine叙述在的RewriteCond%{} REQUEST_FILENAME!-d的RewriteCond%{} REQUEST_FILENAME!-f的RewriteCond%{} REQUEST_FILENAME!-l重写规则^(。+)$的index.php?URL = $ 1 [QSA,L]

我得到500服务器错误:服务器遇到一个内部错误,无法完成您的请求。无论是服务器过载或出现在CGI脚本错误。

我检查httpd.conf中,以检查是否mode_rewrite没有评论。任何人都可以帮助我吗?我使用LAMPP在Ubuntu 12.04

解决方案

的RewriteRule ^(。+)$的index.php?URL = $ 1 [QSA,L]

更改为:

的RewriteRule ^(。+)$的index.php?URL = $ 1 [QSA,L]

请注意,[QSA,L]与[QSA,L]

重复的你的错误,删除空间,工作)。我使用WAMP。

i'm beginner to MVC framework. I'm trying to create one my own based on tutorials.

.htaccess file that they provide contains:

RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.+)$ index.php?url=$1 [QSA, L]

i get 500 server error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

I checked httpd.conf to check if mode_rewrite was not commented. Can anyone help me please? i'm using LAMPP on Ubuntu 12.04

解决方案

RewriteRule ^(.+)$ index.php?url=$1 [QSA, L]

Changed to:

RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]

Note, "[QSA, L]" vs. [QSA,L]

Duplicated your error, removed space, worked). I'm using WAMP.

更多推荐

给人的.htaccess在localhost 500错误

本文发布于:2023-11-01 23:30:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1550721.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:给人   错误   localhost   htaccess

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!