[英]C:/xampp/htdocs/.htaccess: RewriteRule: bad flag delimiters - XAMPP/Windows
I installed XAMPP on my Windows PC. 我在Windows PC上安装了XAMPP。 I created a simple static pages and created .htaccess file in c:\\xampp\\htdocs.
我创建了一个简单的静态页面,并在c:\\ xampp \\ htdocs中创建了.htaccess文件。
.htaccess file content is: .htaccess文件的内容是:
RewriteEngine On RewriteEngine开
RewriteRule ^about-us$ about-us.php [L] RewriteRule ^ about-us $ about-us.php [L]
I am getting 404 for the below page: http://localhost/mysite/about-us/ 我在下面的页面上得到404: http:// localhost / mysite / about-us /
Anyone help me to identify whats wrong with the .htaccess file. 任何人都可以帮助我确定.htaccess文件有什么问题。
当我将.htaccess文件从htdocs移到htdocs / mysite时,它起作用了
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.