Title: 501 Errors on Network Admin Panel
Last modified: April 28, 2017

---

# 501 Errors on Network Admin Panel

 *  [orenstransitpage](https://wordpress.org/support/users/orenstransitpage/)
 * (@orenstransitpage)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/501-errors-on-network-admin-panel/)
 * I installed multisite some time ago. It works pretty well most of the time but
   when I am trying to do things in the network admin panel, I get various 404 and
   501 errors. I assume the issue is in my htaccess file, but despite various trial
   and error attempts, I haven’t figured out what is wrong. My htaccess file is 
   copied below. My site is installed in a subdirectory (orenstransitpage.com/wordpress)
   so the htaccess file is sitting one level up from there. Yet WordPress tries 
   to find the Network Admin Dashboard at [http://orenstransitpage.com/wp-admin/network/](http://orenstransitpage.com/wp-admin/network/),
   but it is actually at [http://orenstransitpage.com/wordpress/wp-admin/network/](http://orenstransitpage.com/wordpress/wp-admin/network/).
   Needless to say, needing to manually do these sorts of URL changes each time 
   I want to do something is cumbersome. Anyone have ideas on how to fix this once
   and for all?
 *     ```
       # Use PHP5.4 as default
       AddHandler application/x-httpd-php54 .php
       ## EXPIRES CACHING ##
       <IfModule mod_expires.c>
       ExpiresActive On
       ExpiresByType image/jpg "access 1 year"
       ExpiresByType image/jpeg "access 1 year"
       ExpiresByType image/gif "access 1 year"
       ExpiresByType image/png "access 1 year"
       ExpiresByType text/css "access 1 month"
       ExpiresByType text/html "access 1 month"
       ExpiresByType application/pdf "access 1 month"
       ExpiresByType text/x-javascript "access 1 month"
       ExpiresByType application/x-shockwave-flash "access 1 month"
       ExpiresByType image/x-icon "access 1 year"
       ExpiresDefault "access 1 month"
       </IfModule>
       ## EXPIRES CACHING ##
   
       RewriteEngine on
       RewriteCond %{HTTP_HOST} ^orenstransitpage\.com$ [OR]
       RewriteCond %{HTTP_HOST} ^www\.orenstransitpage\.com$
       RewriteRule ^orenstransitpage\/?$ "http\:\/\/orenstransitpage\.com\/" [R=301,L]
   
       RewriteRule ^(orenstransitpage/.*)$ http://orenstransitpage.com [R=301,L]
       RewriteRule ^(otpamtrakpics/.*)$ http://orenstransitpage.com/transit-photography/united-states/amtrak/ [R=301,L]
       RewriteRule ^(otpbospics/.*)$ http://orenstransitpage.com/transit-photography/united-states/boston/ [R=301,L]
       RewriteRule ^(otpbrusselspics/.*)$ http://orenstransitpage.com/transit-photography/europe/belgium/ [R=301,L]
       RewriteRule ^(otpbudapestpics/.*)$ http://orenstransitpage.com/transit-photography/europe/hungary/ [R=301,L]
       RewriteRule ^(otpbveroutes/.*)$ http://orenstransitpage.com/ [R=301,L]
       RewriteRule ^(otpchipics/.*)$ http://orenstransitpage.com/transit-photography/united-states/chicago/ [R=301,L]
       RewriteRule ^(otpdccars/.*)$ http://orenstransitpage.com/transit-photography/united-states/washington-dc/ [R=301,L]
       RewriteRule ^(otpdisneypics/.*)$ http://orenstransitpage.com/transit-photography/united-states/disney-worldorlando/ [R=301,L]
       RewriteRule ^(otpeastcoast/.*)$ http://orenstransitpage.com/transit-photography/united-states [R=301,L]
       RewriteRule ^(otpegyptpics/.*)$ http://orenstransitpage.com/transit-photography/middle-east/egypt/ [R=301,L]
       RewriteRule ^(otpgermpics/.*)$ http://orenstransitpage.com/transit-photography/europe/germany/ [R=301,L]
       RewriteRule ^(otpistanbulpics/.*)$ http://orenstransitpage.com/transit-photography/europe/turkey/ [R=301,L]
       RewriteRule ^(otpitalypics/.*)$ http://orenstransitpage.com/transit-photography/europe/italy/ [R=301,L]
       RewriteRule ^(otplondonpics/.*)$ http://orenstransitpage.com/transit-photography/europe/united-kingdom/ [R=301,L]
       RewriteRule ^(otplvivpics/.*)$ http://orenstransitpage.com/transit-photography/europe/ukraine/ [R=301,L]
       RewriteRule ^(otpmartapics/.*)$ http://orenstransitpage.com/transit-photography/united-states/atlanta/ [R=301,L]
       RewriteRule ^(otpnetherlandspics/.*)$ http://orenstransitpage.com/transit-photography/europe/netherlands/ [R=301,L]
       RewriteRule ^(otpnjpics/.*)$ http://orenstransitpage.com/transit-photography/united-states/new-jersey/ [R=301,L]
       RewriteRule ^(otpnortapics/.*)$ http://orenstransitpage.com/transit-photography/united-states/new-orleans/ [R=301,L]
       RewriteRule ^(otpphilpics/.*)$ http://orenstransitpage.com/transit-photography/united-states/philadelphia/ [R=301,L]
       RewriteRule ^(otpparispics/.*)$ http://orenstransitpage.com/transit-photography/europe/france/ [R=301,L]
       RewriteRule ^(otppolandpics/.*)$ http://orenstransitpage.com/transit-photography/europe/poland/ [R=301,L]
       RewriteRule ^(otpportlandpics/.*)$ http://orenstransitpage.com/transit-photography/united-states/portland/ [R=301,L]
       RewriteRule ^(otprideonpics/.*)$ http://orenstransitpage.com/transit-photography/united-states/washington-dc/ride-on/ [R=301,L]
       RewriteRule ^(otpseattlepics/.*)$ http://orenstransitpage.com/transit-photography/united-states/seattle/ [R=301,L]
       RewriteRule ^(otpsfpics/.*)$ http://orenstransitpage.com/transit-photography/united-states/san-francisco/ [R=301,L]
       RewriteRule ^(otpskylines/.*)$ http://orenstransitpage.com/ [R=301,L]
       RewriteRule ^(otpspainpics/.*)$ http://orenstransitpage.com/transit-photography/europe/spain/ [R=301,L]
       RewriteRule ^(otpstcumpics/.*)$ http://orenstransitpage.com/transit-photography/canada/montreal/ [R=301,L]
       RewriteRule ^(otpswitzerlandpics/.*)$ http://orenstransitpage.com/transit-photography/europe/switzerland/ [R=301,L]
       RewriteRule ^(otptcatpics/.*)$ http://orenstransitpage.com/transit-photography/united-states/ithaca/ [R=301,L]
       RewriteRule ^(otptorontopics/.*)$ http://orenstransitpage.com/transit-photography/canada/toronto/ [R=301,L]
       RewriteRule ^(otpvancouverpics/.*)$ http://orenstransitpage.com/transit-photography/canada/vancouver/ [R=301,L]
       RewriteRule ^(otpwestcoast/.*)$ http://orenstransitpage.com/transit-photography/united-states [R=301,L]
       RewriteRule ^(otpisraelpics/.*)$ http://orenstransitpage.com/which-part-of-orens-transit-page-are-you-trying-to-reach/ [R=301,L]
       RewriteRule ^(blog/2016/08/18/orens-reading-list-nyc-subway-record/.*)$ http://orenstransitpage.com/the-travelogue/orens-reading-list-nyc-subway-record/ [R=301,L]
       RewriteRule ^(blog/2016/08/17/system-review-san-juan-pr/.*)$ http://orenstransitpage.com/the-travelogue/system-review-san-juan-pr/ [R=301,L]
       RewriteRule ^(water-water-everywhere/.*)$ http://orenstransitpage.com/the-travelogue/water-water-everywhere/ [R=301,L]
       RewriteRule ^(types-of-transit-photos/.*)$ http://orenstransitpage.com/the-travelogue/types-of-transit-photos/ [R=301,L]
       RewriteRule ^(orens-reading-list-the-world-metro-map/.*)$ http://orenstransitpage.com/the-travelogue/orens-reading-list-the-world-metro-map/ [R=301,L]
       RewriteRule ^(why-take-photos-of-transit/.*)$ http://orenstransitpage.com/the-travelogue/why-take-photos-of-transit/ [R=301,L]
       RewriteRule ^(bus-photo-of-the-month-february-2016/.*)$ http://orenstransitpage.com/the-travelogue/bus-photo-of-the-month-february-2016/ [R=301,L]
       RewriteRule ^(rail-photo-of-the-month-february-2016/.*)$ http://orenstransitpage.com/the-travelogue/rail-photo-of-the-month-february-2016/ [R=301,L]
       RewriteRule ^(10-new-dc-area-photos-added/.*)$ http://orenstransitpage.com/the-travelogue/10-new-dc-area-photos-added/ [R=301,L]
       RewriteRule ^(new-arrivals/.*)$ http://orenstransitpage.com/the-travelogue/new-arrivals/ [R=301,L]
       RewriteRule ^(what-is-the-travelogue/.*)$ http://orenstransitpage.com/the-travelogue/what-is-the-travelogue/ [R=301,L]
       RewriteRule ^(welcome-aboard-again/.*)$ http://orenstransitpage.com/the-travelogue/welcome-aboard-again/ [R=301,L]
   
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
   
       # add a trailing slash to /wp-admin
       RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
   
       RewriteCond %{REQUEST_FILENAME} -f [OR]
       RewriteCond %{REQUEST_FILENAME} -d
       RewriteRule ^ - [L]
       RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
       RewriteRule ^(.*\.php)$ $1 [L]
       RewriteRule . index.php [L] 
       ```
   

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

 *  [jkhongusc](https://wordpress.org/support/users/jkhongusc/)
 * (@jkhongusc)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/501-errors-on-network-admin-panel/#post-9079064)
 * How did you set this up? Obviously it wasnt setup properly from the beginning.
   Did you follow these instructions?
    [https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory](https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)
 *  Thread Starter [orenstransitpage](https://wordpress.org/support/users/orenstransitpage/)
 * (@orenstransitpage)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/501-errors-on-network-admin-panel/#post-9079979)
 * I followed those instructions when I initially gave WordPress its own directory.
   The htaccess file got longer and more complex due to the caching instructions
   and due to needing to set up 301 redirects from the pre-wordpress configuration.
   The multisite install I only did more recently but things worked properly until
   then.
 * I tried going back to a blank htaccess file and adding in the commands one by
   one but was not able to determine which command or commands is causing the trouble.
   Any ideas for how to troubleshoot this are appreciated.
 *  [jkhongusc](https://wordpress.org/support/users/jkhongusc/)
 * (@jkhongusc)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/501-errors-on-network-admin-panel/#post-9084611)
 * > I followed those instructions when I initially gave WordPress its own directory.
 * Your configurations are not following the directions – [https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory](https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)
   
   It should look
 *     ```
       <IfModule mod_rewrite.c>
       RewriteEngine on
       RewriteCond %{HTTP_HOST} ^(www.)?example.com$
       RewriteCond %{REQUEST_URI} !^/my_subdir/
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule ^(.*)$ /my_subdir/$1
       RewriteCond %{HTTP_HOST} ^(www.)?example.com$
       RewriteRule ^(/)?$ my_subdir/index.php [L] 
       </IfModule>
       ```
   
 * > The htaccess file got longer and more complex due to the caching instructions
   and due to needing to set up 301 redirects from the pre-wordpress configuration.
 * I see no problems with your expiration times and redirections. An easy way to
   test (if you can) is to remove them all those instructions and leave only the
   WP configurations in .htaccess. Check your wp-admin and you should still have
   the same problems.
 *  [johngoold](https://wordpress.org/support/users/johngoold-1/)
 * (@johngoold-1)
 * [9 years ago](https://wordpress.org/support/topic/501-errors-on-network-admin-panel/#post-9180979)
 * Do you have a sub-directory or sub-domain type of installation? Personally, I
   only use the sub-domain type of install, it seems cleaner.
 * Double-check your wp-config.php file and make sure it hasn’t got mucked up.
 * For what it is worth, apart from some file compression rules and one moved file
   requiring a re-direct, I only have the following WP rules in my (well, my client’s).
   htaccess (note especially the absence of the rule putting a slash on the end 
   of wp-admin):
 *     ```
       # uploaded files
       RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
   
       RewriteCond %{REQUEST_FILENAME} -f [OR]
       RewriteCond %{REQUEST_FILENAME} -d
       RewriteRule ^ - [L]
       RewriteRule . index.php [L]
       ```
   
 * For what it is worth.

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

The topic ‘501 Errors on Network Admin Panel’ is closed to new replies.

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 4 replies
 * 3 participants
 * Last reply from: [johngoold](https://wordpress.org/support/users/johngoold-1/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/501-errors-on-network-admin-panel/#post-9180979)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
