I have installed WordPress via an auto-installer and later configured it as multisite. But whenever I create the WordPress site using auto-installer it doesn't give me the .htaccess
file by default. So I've created an empty file with the name .htaccess
in CPanel and pasted this code in to it:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^files/(.+)wp-includes/ms-files.php?file=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f
[OR] RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]
Is it a right method ?