According to the online search tutorial to configure the Apache virtual directory pseudo-static, the results can not be achieved, please help to find the reasons, thank you very much!
First step: Turn on pseudo-static
#loadmodule rewrite_module modules/mod_rewrite.so in httpd.conf, uncomment
Replace all allowoverride none with allowoverride all
Step Two: Open the virtual directory
Httpd.conf # include conf/extra/httpd-vhosts.conf, uncomment
and configure the virtual directory in httpd-vhosts.conf, the contents of the virtual directory are as follows
ServerAdmin admin@system documentroot "F:/phpsite/myweb" ServerName 127.0.0.2
Options Indexes FollowSymLinks allowoverride all Order allow,deny
Step three: Configure the. htaccess rewrite rules
The. htaccess file contains the following
Rewriteengine on rewriterule ^/conf_ ([0-9]*). html/conf.php?arg=$1
Fourth: Set conf.php file contents and restart Apache
Check the information for a night or not done, good catch!!!
Reply to discussion (solution)
Configuring virtual Machines
DocumentRoot "F:/phpsite/myweb"
ServerName 127.0.0.1:8009
Errorlog "Logs/web.log"
Apache supports pseudo-static
Options Indexes followsymlinks multiviews execcgi
AllowOverride All
Order Allow,deny
Allow from all
Rewriterule conf_ ([0-9]*). HTML curl.php?arg=$1
That's what you try.
Thank you very much for two bit! Wonder. What I wrote yesterday was no good. It's normal today, it's too doer!