I try to let the Apache use .htaccess file, instead of RewriteRule in the httpd.conf file.
I found online saying:
In the file httpd.conf in the folder: C:\xampp\apache\conf, change
AllowOverride None
to
AllowOverride All
Then, the content in .htaccess will be used.
I’m trying to see how it works now.
added on 4:59 pm:
I go to c:\xampp\apache\bin, use httpd -k restart to restart httpd.exe, it still doesn’t work. I copied the .htaccess file in the root folder. It still doesn’t work. It’s said that the file direction should be defined in httpd.conf. I will try it when I have time.