.htaccess url重写可以实现把目录隐藏吗?比如一个网站
栏目url格式:http://www.xxx.com/index.php/asp/111
内容url格式:http://www.xxx.com/index.php/asp/111/222/111.html想把index.php 这个目录隐藏结果是这样:http://a3.68aiai.com/asp/shipin
http://a3.68aiai.com/asp/111/222/111.html就是把网站所有带index.php目录的url 都改成不带index.php的url.htaccess 里面的内容应该如何去写 请高手指点
栏目url格式:http://www.xxx.com/index.php/asp/111
内容url格式:http://www.xxx.com/index.php/asp/111/222/111.html想把index.php 这个目录隐藏结果是这样:http://a3.68aiai.com/asp/shipin
http://a3.68aiai.com/asp/111/222/111.html就是把网站所有带index.php目录的url 都改成不带index.php的url.htaccess 里面的内容应该如何去写 请高手指点
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]让所有的重定向到url