URL rewrite need server support! Before you enable this setting, make sure that the correct settings have been made on the server, and see the settings method under Apache and the settings under IIS below.
the setting method under Apache
Copy Code code as follows:
Open the Apache configuration file httpd.conf.
Remove the #loadmodule rewrite_module modules/mod_rewrite front
Add in httpd.conf:
<ifmodule mod_rewrite.c>
Rewriteengine on
#RewriteCond%{env:script_url} (?: Index|dispbbs) [ -0-9]+\.html
Rewriterule ^ (. *? (?: Index|dispbbs))-([ -0-9]+) \.html$ $1.php?__is_apache_rewrite=1&__rewrite_arg=$2
</IfModule>
To implement the mapping of ASP post URLs to PHP posts, add in the third step between <ifmodule mod_rewrite.c> and </IfModule>:
Rewritemap toLowerCase Int:tolower
Rewritecond%{query_string} (?: Boardid|page|id|replyid|star|skin) \=\d+ [NC]
Rewriterule ^ (. * (?: Index|dispbbs)) \.asp$ $1.php?${tolowercase:%{query_string}}&__is_apache_rewrite=1
Save httpd.conf and restart Apache.