2017-08-04 58 views
0

我有一个像URL删除网页名称:如何使用.htaccess文件

http://www.example.com/list/css/Introduction-of-CSS 

但我想删除之间,最后它看起来像这样的/list/

http://www.example.com/css/Introduction-of-CSS 

.htaccess目前有这样的:

Options +FollowSymLinks 
RewriteEngine on 
RewriteRule list/(.*)/(.*)/ list.php?catid=$1&tid=$2 
RewriteRule list/(.*)/(.*) list.php?catid=$1&tid=$2 

回答

0

试试这个

RewriteBase/
RewriteRule ^(.*?)/css/([\w-]+)/?$ $1/list.php?catid=$2&tid=$3 [L] 

如果以下任何问题的评论..