简体   繁体   English

网址重写500错误

[英]URL rewriting 500 error

I am beginner in rewriting url. 我是重写URL的初学者。 I tried to do simple rewrite but it goes badly. 我试图进行简单的重写,但是效果很糟。 I don't know why. 我不知道为什么 Searched for answers but did not find anything. 搜索答案,但未找到任何内容。

Error I am encountering: 我遇到的错误:

500 internal server error | 500内部服务器错误| Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. 此外,尝试使用ErrorDocument处理请求时遇到404 Not Found错误。

My htaccess file is in /admin/.htaccess And I have another in /.htaccess - in this I have this code: Options -Indexes 我的htaccess文件是在/admin/.htaccess我还有另一个/.htaccess -在此我有这样的代码: Options -Indexes

# Rewriting URLs
RewriteEngine On

RewriteRule ^custom dashboard.php [NC, L]

Thank you for your help 谢谢您的帮助

Try without space in [NC, L]: 尝试在[NC,L]中没有空格:

# Rewriting URLs
RewriteEngine On

RewriteRule ^custom dashboard.php [NC,L]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM