本地主机中的htaccess rewriteRule

电视专业版

我在taha本地主机的目录中有一个项目,客户端部分在FrontEnddirectory中,现在:

我怎么可以重写localhost/taha/FrontEnd,以localhost.htaccess

阿努巴瓦

您可以在DOCUMENT_ROOT/.htaccess文件中使用以下代码

RewriteEngine On
RewriteBase /

# If the request is not for a valid directory
RewriteCond %{REQUEST_FILENAME} !-d
# If the request is not for a valid file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule !^taha/FrontEnd/ taha/FrontEnd%{REQUEST_URI} [L,NC]

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章