We need to enable rewrite Pseudo-static
Specific operation method: log on to the KLOXO background, expand the domain name in sequence, install the WP domain name, script, and lighttpd address rewrite rule, then fill in the above rule in the input box on the right, update, after completion, remember to restart lighttpd in the service. As shown in the following figure:
After configuration, restart lighttpd. Now you can add rules.
Wordpress rules
The code is as follows: |
Copy code |
Url. rewrite = ( "^/(Wp-. + ).*/? "=>" $0 ", "^/(Sitemap. xml)" => "$0 ", "^/(Xmlrpc. php)" => "$0 ", "^/(. + )/? $ "=>"/Index. php/$1" ) |
Rewrite (pseudo static) rules of Discuz under lighttpd:
The code is as follows: |
Copy code |
Url. rewrite-once = ( "^/Archiver/(fid | tid0000-0000w-00000000.html) $" => "archiver/index. php? $1 ", "^/Forum-(%0-9%%%%-(%0-9%%%%%.html $" => "forumdisplay. php? Fid = $1 & page = $2 ", "^/Thread-(0-9000000000000-(0-9000000000000-(0-90000000000000000.html $" => "viewthread. php? Tid = $1 & extra = page = $3 & page = $2 ", "^/Space-(username | uid316-(.20.0000.html $" => "space. php? $1 = $2 ", "^/Tag-(.20.20..html $" => "tag. php? Name = $1" ) |