Home  >  Article  >  Backend Development  >  htaccess有关问题

htaccess有关问题

WBOY
WBOYOriginal
2016-06-13 13:50:46787browse

htaccess问题
弄了快半天天了,还是没搞定.
1.在ROOT下有名为abc文件夹,LOGIN画面login.php
2.在ROOT下建一个.htaccess文件,作用是:当用户输入www.test.com/abc时,实际上是访问的www.test.com/login.php.
3.我的.htaccess是这样写的
  RewriteEngine on
  RewriteRule ^$ /login.php
4.结果是页面找到了,但是页面上的图片和样式全部失效。查看SRC,图片路径是http://www.test.com/abc/img/login_top_01.gif,而真实的应该是http://www.test.com/img/login_top_01.gif

请问各位高人,这个应该怎么样改。

------解决方案--------------------
login.php 里加一句

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn