首页 文章

HTML重写.htaccess文件

提问于
浏览
0

当我使用.htaccess文件到我的根文件夹来重写URL时,它发生错误并得到了这个按钮“服务器遇到内部错误或配置错误,无法完成您的请求 . ”

我在.htaccess文件中使用此重写规则

Options +FollowSymLinks
RewriteEngine on

RewriteRule services services.html?

http://www.domain.com/services.html获取重写网址http://www.domain.com/services

请指导我这个

1 回答

  • 0

    我认为它应该是

    RewriteRule ^services$ services.html [L]
    

    要么

    RewriteCond /%{REQUEST_FILENAME}.html -f
    RewriteRule ^([a-zA-Z0-9_-\s]+)/$ /$1.html
    

相关问题