Title: .htaccess file???
Last modified: August 18, 2016

---

# .htaccess file???

 *  Resolved [Joe Hall](https://wordpress.org/support/users/redbmedia/)
 * (@redbmedia)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/htaccess-file-2-2/)
 * Hey everyone,
 * I am kinda in panic mode. I accidently deleteed my .htaccess file! and now all
   of my sub directories are showing 404 pages. before I begin to write a new one,
   can anyone point me to a good example of one that works well with WP?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/htaccess-file-2-2/#post-585981)
 * You don’t have to write one.
    Upload an empty file named .htaccess and make it
   writeable (chmod=666). Then resave your permalinks – WP will write it.
 *  Thread Starter [Joe Hall](https://wordpress.org/support/users/redbmedia/)
 * (@redbmedia)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/htaccess-file-2-2/#post-585982)
 * But I can’t access WP’s admin because wp-login.php brings up a 404 page.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/htaccess-file-2-2/#post-585983)
 * Is it the blog linked to your profile? That one works.
 *  Thread Starter [Joe Hall](https://wordpress.org/support/users/redbmedia/)
 * (@redbmedia)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/htaccess-file-2-2/#post-585985)
 * No, this is a clients blog….but fear not! You are right after I changed the CMOD
   on the htaccess file I was able to access the wp-login and it appears that everthing
   is working fine now. Thank you very much!
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/htaccess-file-2-2/#post-585986)
 * _No, this is a clients blog…_
 * Oh, we love to offer free support for those that do paid work…
    😉

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘.htaccess file???’ is closed to new replies.

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [18 years, 10 months ago](https://wordpress.org/support/topic/htaccess-file-2-2/#post-585986)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
