I installed XAMPP on my Windows PC. I created a simple static pages and created .htaccess file in c:\\xampp\\htdocs.
.htaccess file content is:
RewriteEngine On
RewriteRule ^about-us$ about-us.php [L]
I am getting 404 for the below page: http://localhost/mysite/about-us/
Anyone help me to identify whats wrong with the .htaccess file.
当我将.htaccess文件从htdocs移到htdocs / mysite时,它起作用了
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.