Htaccess File

netxinyi/blog/master/.htaccess

HTTP_HOST, REQUEST_FILENAME
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^slog.com.cn$ [NC]
RewriteRule ^(.*)$ http://www.slog.com.cn/$1 [L,R=301]

RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Exit mobile version