1. Create a new. htaccess file in the directory where you need to use the. htaccess file
this. htaccess file General Discuz, DEDECMS and other systems have their own
#. htaccess Rewrite rule
Rewrite ^ (. *)/archiver/((Fid|tid)-[w-]+.html) $ $1/archiver/index.php?$2 last;
Rewrite ^ (. *)/forum-([0-9]+)-([0-9]+). html$ $1/forumdisplay.php?fid=$2&page=$3 last;
Rewrite ^ (. *)/thread-([0-9]+)-([0-9]+)-([0-9]+). html$ $1/viewthread.php?tid=$2&extra=page%3d$4&page=$3 Last
Rewrite ^ (. *)/profile-(USERNAME|UID)-(. +). html$ $1/viewpro.php?$2=$3 last;
Rewrite ^ (. *)/space-(USERNAME|UID)-(. +). html$ $1/space.php?$2=$3 last;
Rewrite ^ (. *)/tag-(. +). html$ $1/tag.php?name=$2 last;
# end. htaccess rewrite rule
2. Then modify the nginx.conf to introduce the. htaccess file in the server{} of the virtual host that needs to add pseudo static.
server{
Include xxxx/.htaccess; # # (change this to the exact location of your. htaccess file)
}
Restart the nginx.conf.