公告
财富商城
积分规则
提问
发文
2019-09-19 20:17发布
放荡不羁爱自由
I need a simple rule to rewrite
to
RewriteRule ([^/]+)/([^/]+) $1-$2.html
try this rule:
RewriteEngine on Options +FollowSymlinks -MultiViews RewriteRule ^([^/]+)/([^/]+)/?$ /$1-$2.html [R,L]
RewriteEngine On
RewriteRule ^([a-z0-9]+)/([a-z0-9]+)/?$ $1-$2.html [QSA,L]
([a-z0-9]+)
$1-$2
QSA
If you would like to forward your users so the URL shows the change, place R=301 before QSA. R = Redirect, 301 = Permanent.
R
301
最多设置5个标签!
try this rule:
RewriteEngine On
RewriteRule ^
([a-z0-9]+)
/([a-z0-9]+)
/?$$1-$2
.html [QSA
,L]If you would like to forward your users so the URL shows the change, place R=301 before QSA.
R
= Redirect,301
= Permanent.