Title: .htaccess for subdomain
Last modified: August 18, 2016

---

# .htaccess for subdomain

 *  [mod keys](https://wordpress.org/support/users/willibrown/)
 * (@willibrown)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/htaccess-for-subdomain/)
 * I have addon domains on the same host. They resolve as domains but their content
   is in folder like
    public_html/subdomain
 * How should I write my .htaccess file? What attribs should it have?
 * Or should I just create a blank one and make it 666 attribs?

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

 *  [chaaban](https://wordpress.org/support/users/chaaban/)
 * (@chaaban)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/htaccess-for-subdomain/#post-362997)
 * just add ur .htaccess in the subdomain .
 * i did this and it worked well
 *  [abhideydas](https://wordpress.org/support/users/abhideydas/)
 * (@abhideydas)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/htaccess-for-subdomain/#post-363021)
 * ya just adding it would work well. as for the attributes, make it 666 if you 
   want WP to update it automatically, or 644 if you want to update it manually.

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

The topic ‘.htaccess for subdomain’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [abhideydas](https://wordpress.org/support/users/abhideydas/)
 * Last activity: [20 years, 1 month ago](https://wordpress.org/support/topic/htaccess-for-subdomain/#post-363021)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
