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 Refresh .htaccess after move to new host

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 DrupalUsing Drupal

With 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 DummiesDrupal For Dummies

Learn 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 EditionPro Drupal Development, Second Edition

Widely 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, ScriptingFront 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 BucketCracking 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 >

Thanks for reading, if you think this post help you please consider to buy me a beer

Search Terms :

  • htaccess refresh
  • refresh htaccess
  • reload htaccess
  • wordpress recreate htaccess
  • force refresh htaccess
  • recreate wordpress htaccess
  • htaccess force refresh
  • wordpress unknown host
  • htaccess reload
  • reload htaccess file
  • force reload of htaccess
  • refresh www
  • refresh www htaccess
  • permalink not working wordpress after moving hosting
  • reload error 500 htaccess
  • wordpress appears after refresh
  • refresh with httaccess
  • refresh page htaccess
  • permalink refresh
  • recreating the htaccess file for wordpress
    • Share/Bookmark
    Tips

    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.

    Comments are closed.