Apache rewrite_module pseudo static and order allow, deny ip
1. Open the configuration file httpd. conf of apache.
2. Remove the # loadmodule rewrite_module modules/mod_rewrite before #.
3. Add the following in httpd. conf:
<Ifmodule mod_rewrite.c>
Rewriteengine on
# Rewritecond % {env: script_url }(? : Index | dispbbs00000000-0-900000000.html
Rewriterule ^ (.*? (? : Index | dispbbs00000000-(-0-942500000000.html $ {getproperty (content)}. php Tutorial? _ Is_apache_rewrite = 1 & __ rewrite_arg = $2
</Ifmodule>
4. To map asp post URLs to php posts, add the following between <ifmodule mod_rewrite.c> and </ifmodule> in Step 3:
Rewritemap tolowercase int: tolower
Rewritecond % {query_string }(? : Boardid | page | id | replyid | star | skin) = d + [nc]
Rewriterule ^ (.*(? : Index | dispbbs). asp $ {getproperty (content)}. php? $ {Tolowercase: % {query_string }}&__ is_apache_rewrite = 1
5. Save httpd. conf and restart apache
Apache ip address sealing method
1. Set in the configuration file:
Open httpd. conf and edit the following blocks:
[Code] httpd. conf
<Directory "/var/www/html"> options indexes followsymlinks allowoverride none order allow, deny allow from all deny from 124.114.0. deny from 124.115.0. </directory> [code]. create or open an htaccess file in the root directory of the website. add the following content to the htaccess file)
Order allow, deny allow from all deny from 124.114.0. deny from 124.115.0.