- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
我在我的电脑上使用 Lamp 服务器。我开始使用 Laravel php 框架。在我的 .htaccess 中,如果我使用 Options +FollowSymLinks
,我会收到 500 错误。如果我注释掉,我必须在所有地址中使用 index.php
..example:
/~ytsejam/blog/public/index.php/login
我使用 Arch Linux。有办法解决吗?
编辑:我通过使用虚拟主机解决了这个问题。并从 laravel 文件夹中的 application/config/application.php 中删除 index.php。
最佳答案
您可以尝试在互联网上搜索“此处不允许使用 .htaccess 选项”。
我发现的一个建议(使用谷歌)是:
Check to make sure that your httpd.conf file has AllowOverride All.
适用于 Mint Linux 的 .htaccess 文件(位于 Laravel/public 文件夹中):
# Apache configuration file
# http://httpd.apache.org/docs/2.2/mod/quickreference.html
# Turning on the rewrite engine is necessary for the following rules and
# features. "+FollowSymLinks" must be enabled for this to work symbolically.
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
</IfModule>
# For all files not found in the file system, reroute the request to the
# "index.php" front controller, keeping the query string intact
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
希望对您有所帮助。否则你可以在 Laravel 论坛 (http://forums.laravel.com/) 上提问,那里有一些非常乐于助人的人。
关于php - 什么是选项 +FollowSymLinks?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12120035/
我在我的电脑上使用 Lamp 服务器。我开始使用 Laravel php 框架。在我的 .htaccess 中,如果我使用 Options +FollowSymLinks ,我会收到 500 错误。如
我已经搜索了 4 个小时,但似乎找不到解决我们问题的方法。 我们遇到的问题 我们有一个 CentOS Linux 6.4 服务器,运行 Virtualmin 3.99.gpl。我们有一个 Drupal
我在我的/httpdocs 目录中有一个网站设置,它有自己的 htaccess,我在/httpdocs/blog 中有一个 wordpress 博客,使用标准的 wordpress htaccess
我正在将其用于我的一个应用程序: Options +FollowSymLinks -SymLinksIfOwnerMatch 而且我担心这可能带来的安全问题。知道我可以采取什么措施来使这种方法尽可能安
我正在尝试使用“maven-clean-plugin”删除位于/my/path 文件夹中的其他文件。 maven-clean-plugin cle
很难说出这里问的是什么。这个问题是含糊的、模糊的、不完整的、过于宽泛的或修辞性的,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开它,visit the help center 。 已关
我正在 OSX 上使用内置的 Apache2。我将文档根目录移至桌面上的一个文件夹,并确保 _www 和 everyone 具有读取权限。它工作得很好,PHP 工作得很好,一切工作正常,直到我仅使用这
我已经在我的 Mac (lion) 上本地安装了 wordpress启用虚拟主机后,我在主机文件中创建了一个条目,将“wordpress”指向 127.0.0.1 我的 vhosts.conf 包含:
为了重定向所有 somefolder/index.html (以及 somefolder/index.htm )到 somefolder/我在 Apache .htaccess 文件中使用这个简单的重
我是一名优秀的程序员,十分优秀!