Refresh .htaccess after move to new host

A few visitor complain me for ‘file not found‘ when they click on download link.

After think for a while I have the solution, refresh the .htaccess file.

Here step by step guide how to refresh .htaccess after move to new host :

1. Rename .htaccess to another name

mv .htaccess .htaccess_old

2. Recreate .htaccess using ‘permalinks‘ menu that available in Settings.

create_permalink

3. Check it

# ls -al | grep htaccess

-rw-r–r–  1 winhowsn winhowsn     205 Jul  8 05:56 .htaccess
-rwxr-xr-x  1 winhowsn winhowsn    7567 Jul  8 05:48 .htaccess_old*

4. See .htaccess content

# cat .htaccess

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

# END WordPress

great, download url working again.