简体   繁体   中英

URL rewriting 500 error

I am beginner in rewriting 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 | Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

My htaccess file is in /admin/.htaccess And I have another in /.htaccess - in this I have this code: Options -Indexes

# Rewriting URLs
RewriteEngine On

RewriteRule ^custom dashboard.php [NC, L]

Thank you for your help

Try without space in [NC, L]:

# Rewriting URLs
RewriteEngine On

RewriteRule ^custom dashboard.php [NC,L]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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