Title: Multisite giving wrong htaccess code
Last modified: August 20, 2016

---

# Multisite giving wrong htaccess code

 *  [Overflow](https://wordpress.org/support/users/acrane/)
 * (@acrane)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/multisite-giving-wrong-htaccess-code/)
 * After copying and pasting into the htaccess file what the Network Settings was
   telling me to do I was getting internal server errors.
 * Then found this:
    [http://wordpress.org/support/topic/wp-admin-page-not-foundsub-directory-multisite?replies=6](http://wordpress.org/support/topic/wp-admin-page-not-foundsub-directory-multisite?replies=6)
 * Network Settings was telling me to paste this:
 *     ```
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
   
       # add a trailing slash to /wp-admin
       RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
   
       RewriteCond %{REQUEST_FILENAME} -f [OR]
       RewriteCond %{REQUEST_FILENAME} -d
       RewriteRule ^ - [L]
       RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) paddlr/$2 [L]
       RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ paddlr/$2 [L]
       RewriteRule . index.php [L]
       ```
   
 * But this is what actually makes it work:
 *     ```
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
   
       # uploaded files
       RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
   
       # add a trailing slash to /wp-admin
       RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
   
       RewriteCond %{REQUEST_FILENAME} -f [OR]
       RewriteCond %{REQUEST_FILENAME} -d
       RewriteRule ^ - [L]
       RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
       RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
       RewriteRule . index.php [L]
       ```
   

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 2 months ago](https://wordpress.org/support/topic/multisite-giving-wrong-htaccess-code/#post-3542238)
 * Where are you putting this .htaccess? In root HTML or in paddlr?
 * The original .htaccess is correct, so long as it’s in the right folder.
 *  Thread Starter [Overflow](https://wordpress.org/support/users/acrane/)
 * (@acrane)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/multisite-giving-wrong-htaccess-code/#post-3542549)
 * Well, it’s technically in the root I guess. But it’s in a subfolder in my Godaddy
   account to which the domain is pointing too. I’m on shared hosting…
 * It’s where WordPress creates it when I change the permalinks.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 2 months ago](https://wordpress.org/support/topic/multisite-giving-wrong-htaccess-code/#post-3542564)
 * Where is WP installed?
 * Is it in /public_html/paddlr or /public_html/ or … ?
 * What is the URL of the main site? domain.com or domain.com/paddlr?

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

The topic ‘Multisite giving wrong htaccess code’ is closed to new replies.

## Tags

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

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 3 replies
 * 2 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/multisite-giving-wrong-htaccess-code/#post-3542564)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
