netxinyi/blog/master/.htaccess
<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>
Files
![HTTP_HOST, REQUEST_FILENAME](https://www.askapache.com/s/u.askapache.com/htaccess-file/2016/github/netxinyi/blog-htaccess.png)