我在taha
本地主机的目录中有一个项目,客户端部分在FrontEnd
directory中,现在:
我怎么可以重写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] 删除。
我来说两句