Update:
- Admin can save the rule, but the user not
I create subdomain (ex. sub.domain.com) with path “sub.domain.com/public”, so i can install laravel in directory sub.domain.com.
When I’m go to sub.domain.com/login it shown 404 page not found. I think there is something wrong with the htaccess file, so I check it in subdomain launcher → rewrite rule, but there is not, so I save it again and shown an error.
“Could not save rewrite rules. Error message: Websites matching query does not exist.”
Here is the .htaccess file
Options -MultiViews -IndexesRewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]