Options +followsymlinks
Rewriteengine on
Rewritecond%{request_filename}!-d
Rewritecond%{request_filename}!-f
Rewriterule ^ (. +?\. ( ICO|GIF|JPG|JPEG|PNG|HTML|JS|CSS|MAP|TTF|WOFF|WOFF2)) $/static/$1 [L]
Rewritecond%{request_filename}!-d
Rewritecond%{request_filename}!-f
Rewriterule ^ (. *) $ index.php/$1 [qsa,pt,l]
<----------------------------------------------------------------------------->
That's what I wrote. htaccess file code, but I put the file in the project directory, still can't use, ask God to help to see
Reply to discussion (solution)
Does Apache turn on pseudo-static?
Has your rewrite been turned on?
If not turned on, you can use the following command to open
sudo a2enmod rewrite
Already solved Rewriterule ^ (. *) $ index.php/$1 [qsa,pt,l]
There's a question mark in the back of the index.php, and I don't know what the situation is.