hotarzhang/xy/master/.htaccess
RewriteEngine on # If a directory or a file exists, use it directly RewriteCond %{HTTP_HOST} ^xinyeweb.com$ RewriteRule ^(.*)$ http://www.xinyeweb.com/$1 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Otherwise forward it to index.php RewriteRule . index.php