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.

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.
Related Reading:
Using DrupalWith the recipes in this book, you can take full advantage of the vast collection of community-contributed modules that make the Drupal web framewo... Read More >
Drupal For DummiesLearn to set up, manage, and administer a Drupal Web site
Drupal offers unparalleled flexibility for content-managed Web sites, but most ... Read More >
Pro Drupal Development, Second EditionWidely praised for its in–depth coverage of Drupal internals, bestselling Pro Drupal Development has been completely updated for Drupal 6 in thi... Read More >
Front End Drupal: Designing, Theming, Scripting“For Drupal to succeed, we need books like this.”
–Dries Buytaert, Drupal founder and project... Read More >
Cracking Drupal: A Drop in the BucketThe first book to reveal the vulnerabilities and security issues that exist in the sites that have been built with Drupal?and how to prevent them from... Read More >
Search Terms :
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.
