URL Apache configuration of rewritten

wordpress permalinks require Apache in support url rewrite, so the configuration a bit.

1, modify the apache httpd.conf file, the following statement before the # removed

#LoadModule rewrite_module modules/mod_rewrite.so

2, modify apache httpd.conf file, AllowOverride None section corresponding to AllowOverride All, such as



<Directory "D:/Local/Apache/htdocs/">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

3, to be established under the directory url rewriting .htaccess files, wordpress will only be generated after opening a permanent link, as follows:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Guess you like

Origin www.cnblogs.com/wyw678/p/12523556.html