Title: .htaccess code replaced not working
Last modified: August 20, 2016

---

# .htaccess code replaced not working

 *  Resolved [fanaticjim](https://wordpress.org/support/users/fanaticjim/)
 * (@fanaticjim)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/htaccess-code-replaced-not-working/)
 * Hello,
 * I replaced the code in the wp-config.php file and the .htaccess file with the
   code given to me on the Create a Network of WordPress Sites.
 * When I tried to go to my blof site I received the following message; Error establishing
   a database connection
 * When I copied the Rewrite lines of code to the .htaccess file I didn’t delete
   the lines above the Rewrite code that read: # BEGIN WordPress <IFModule mod_rewrite.
   c> and at the bottom I didn’t delete the </IfModule>
 * # END WordPress
 * Should I have deleted those lines of code?
 * Thanks for your help,
    Jim

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

 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/htaccess-code-replaced-not-working/#post-2222332)
 * That’s not an htaccess related error. That’s a db error. It means it cannot find
   the new tables for the new blog in the db.
 * Usually it’s because the db user does not have ALL privileges.
 *  Thread Starter [fanaticjim](https://wordpress.org/support/users/fanaticjim/)
 * (@fanaticjim)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/htaccess-code-replaced-not-working/#post-2222380)
 * By golly, that is your name on the front of the WordPress All-In-One for Dummies
   book. I’ll say this, I really like the book. It has a whole lot of helpful information
   in it. I just need to get my mind wrapped around this multisite stuff.
 * So, is getting ALL privileges for my db something I need to take up with my server
   provider or do I need to look for something in the book that will help?
 * Thanks
    Jim
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 8 months ago](https://wordpress.org/support/topic/htaccess-code-replaced-not-working/#post-2222381)
 * If you have access to some sort of SQL admin tool (like via Cpanel) you should
   be able to do it yourself. If not, ask your host 🙂
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/htaccess-code-replaced-not-working/#post-2222387)
 * Yeah, it;s a bit of a head warp but really fun. 🙂
 * And yes, the db user is a host issue. Did you use a one-click install to set 
   up wordpress?
 *  Thread Starter [fanaticjim](https://wordpress.org/support/users/fanaticjim/)
 * (@fanaticjim)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/htaccess-code-replaced-not-working/#post-2222394)
 * I’m pretty sure I used the one-click install.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 8 months ago](https://wordpress.org/support/topic/htaccess-code-replaced-not-working/#post-2222396)
 * Ugh. Yeah, they tend to have stupid permissions issues with database tables :/
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/htaccess-code-replaced-not-working/#post-2222401)
 * Can you make a new db user, give them all permissions, assign them to the db 
   and change that line (db_user) in your config file? 😀
 *  Thread Starter [fanaticjim](https://wordpress.org/support/users/fanaticjim/)
 * (@fanaticjim)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/htaccess-code-replaced-not-working/#post-2222428)
 * I’m going to go ahead and mark this as resolved. I’m doing some work on my server,
   subdomains, and MYSql DBs. Going to try again from the beginning.

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

The topic ‘.htaccess code replaced not working’ is closed to new replies.

## Tags

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

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 8 replies
 * 3 participants
 * Last reply from: [fanaticjim](https://wordpress.org/support/users/fanaticjim/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/htaccess-code-replaced-not-working/#post-2222428)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
