【发布时间】:2018-03-05 02:09:39
【问题描述】:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /reminder-app/
#Prevent Indexing
Options +FollowSymLinks -Indexes
#Handle Controller
RewriteCond ${REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /reminder-app/index.php [R=301, L]
</IfModule>
我正在尝试将我的 localhost / 重定向到一个名为提醒应用程序的子文件夹 我将 .htaccess 放在 www 中,这是我的代码。我错过了什么,因为它显示错误:
服务器错误!服务器遇到内部错误,无法 完成您的请求。要么服务器超载,要么存在 CGI 脚本中的错误。
如果您认为这是服务器错误,请联系网站管理员。
错误 500 localhost Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/7.1.1
【问题讨论】:
-
你试过不使用 RewriteBase 吗?正如你的意思,这有点不同。
标签: .htaccess