1. [tag page pseudo-static] template/default/Tag/tag.htm
Set <a href = " Misc. php? MoD = tag & id = $ tag [tagid] " Change to <a href = " Tag-tagtagtagtagid=.html "
2. [tag homepage pseudo-static] template/default/Tag/tagitem.htm
Set <a href = " Misc. php? MoD = tag " > {Lang tag} </a> to <a href = " Tag.html " >{ Lang tag} </a>
Set <a href = " Misc. php? MoD = tag & id = $ ID " > $ Tagname </a> to <a href = " Tag-$ ID/ " > $ Tagname </a>
3. [Forum content page tag pseudo-static] template/default/FORUM/viewthread_node.htm
Set <a Title = " $ Var [1] " Href = " Misc. php? MoD = tag & id = $ var [0] " Target = " _ Blank " > Change
<A Title = " $ Var [1] " Href = " Tag-var1_02.16.html " Target = " _ Blank " > $ Var [1] </a>
Pseudo-staticCode:
Rewritecond % {QUERY_STRING} ^ (. *) $
Rewriterule ^ tag-([0-9] +) \. html $ Misc. php? MoD = tag & id = $1
Rewritecond % {QUERY_STRING} ^ (. *) $
Rewriterule login tag.html $ Misc. php? MoD = tag
All my discuz X2 pseudo static code
# Begin discuzx_bbs
<Ifmodule mod_rewrite.c>
Rewriteengine on
Rewritecond % {QUERY_STRING} ^ (. *) $
Rewriterule ^ $ Forum. php
Rewritecond % {QUERY_STRING} ^ (. *) $
Rewriterule ^ tag \. html $ Misc. php? MoD = tag
Rewritecond % {QUERY_STRING} ^ (. *) $
Rewriterule ^ tag-([0-9] +) \. html $ Misc. php? MoD = tag & id = $1
Rewritecond % {QUERY_STRING} ^ (. *) $
Rewriterule ^ topic-(. +) \. html $ portal. php? MoD = TOPIC & topic = $1 & % 1
Rewritecond % {QUERY_STRING} ^ (. *) $
Rewriterule ^ article-([0-9] +)-([0-9] +) \. html $ portal. php? MoD = view & Aid = $1 & page = $2 & % 1
Rewritecond % {QUERY_STRING} ^ (. *) $
Rewriterule ^ Forum-(\ W +)-([0-9] +) \. html $ Forum. php? MoD = Forumdisplay & FID = $1 & page = $2 & % 1
Rewritecond % {QUERY_STRING} ^ (. *) $
Rewriterule ^ thread-([0-9] +)-([0-9] +)-([0-9] +) \. html $ Forum. php? MoD = viewthread & tid = $1 & extra = Page \ % 3d $3 & page = $2 & % 1
Rewritecond % {QUERY_STRING} ^ (. *) $
Rewriterule ^ Group-([0-9] +)-([0-9] +) \. html $ Forum. php? MoD = Group & FID = $1 & page = $2 & % 1
Rewritecond % {QUERY_STRING} ^ (. *) $
Rewriterule ^ space-(username | UID)-(. +) \. html $ home. php? MoD = Space & $1 = $2 & % 1
Rewritecond % {QUERY_STRING} ^ (. *) $
Rewriterule ^ blog-([0-9] +)-([0-9] +) \. html $ home. php? MoD = Space & uid = $1 & Do = Blog & id = $2 & % 1
Rewritecond % {QUERY_STRING} ^ (. *) $
Rewriterule ^ archiver/(FID | tid)-([0-9] +) \. html $ archiver/index. php? Action = $1 & value = $2 & % 1
</Ifmodule>
# End discuzx_bbs
Example: http://bbs.likebeta.com/tag.html