Support » Networking WordPress » Adding a site creates Internal Server Error 500

  • Resolved pyroboy024911

    (@pyroboy024911)


    I am hoping someone can tell me im doing something wrong this is my first network site and its not going as smooth as i had hoped.

    Ok so to start things off i have GoDaddy deluxe hosting and had to use subfolders i followed the setup and documentation to a tee

    here is my htaccess

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    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]
    </IfModule>
    
    # END WordPress
    
    # BEGIN wtwp_cache
    # END wtwp_cache
    
    # BEGIN wtwp_security
    # END wtwp_security

    that worked and all but every time create a new site i get this error

    Internal Server Error
    
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    
    Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    
    More information about this error may be available in the server error log.
    
    Apache Server at www.garagedoorsolutionstx.com Port 80

    so i started to notice my .htaccess file was being changed to this after i added a /dallasgaragedoors/ site

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    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]
    </IfModule>
    
    # END WordPress
    
    # BEGIN wtwp_cache
    <IfModule mod_mime.c>
    
    	# Text
    	AddType text/css .css
    	AddType application/x-javascript .js
    	AddType text/html .html .htm
    	AddType text/richtext .rtf .rtx
    	AddType text/plain .txt
    	AddType text/xml .xml
    
    	# Image
    	AddType image/gif .gif
    	AddType image/x-icon .ico
    	AddType image/jpeg .jpg .jpeg .jpe
    	AddType image/png .png
    	AddType image/svg+xml .svg .svgz
    
    	# Video
    	AddType video/asf .asf .asx .wax .wmv .wmx
    	AddType video/avi .avi
    	AddType video/quicktime .mov .qt
    	AddType video/mp4 .mp4 .m4v
    	AddType video/mpeg .mpeg .mpg .mpe
    
    	# PDF
    	AddType application/pdf .pdf
    
    	# Flash
    	AddType application/x-shockwave-flash .swf
    
    	# Font
    	AddType application/x-font-ttf .ttf .ttc
    	AddType application/vnd.ms-fontobject .eot
    	AddType application/x-font-otf .otf
    
    	# Audio
    	AddType audio/mpeg .mp3 .m4a
    	AddType audio/ogg .ogg
    	AddType audio/wav .wav
    	AddType audio/wma .wma
    
    	# Zip/Tar
    	AddType application/x-tar .tar
    	AddType application/x-gzip .gz .gzip
    	AddType application/zip .zip
    </IfModule>
    
    <IfModule mod_expires.c>
    	ExpiresActive On
    
    	# Text
    	ExpiresByType text/css A31536000
    	ExpiresByType application/x-javascript A31536000
    	ExpiresByType text/html A3600
    	ExpiresByType text/richtext A3600
    	ExpiresByType text/plain A3600
    	ExpiresByType text/xml A3600
    
    	# Image
    	ExpiresByType image/gif A31536000
    	ExpiresByType image/x-icon A31536000
    	ExpiresByType image/jpeg A31536000
    	ExpiresByType image/png A31536000
    	ExpiresByType image/svg+xml A31536000
    
    	# Video
    	ExpiresByType video/asf A31536000
    	ExpiresByType video/avi A31536000
    	ExpiresByType video/quicktime A31536000
    	ExpiresByType video/mp4 A31536000
    	ExpiresByType video/mpeg A31536000
    
    	# PDF
    	ExpiresByType application/pdf A31536000
    
    	# Flash
    	ExpiresByType application/x-shockwave-flash A31536000
    
    	# Font
    	ExpiresByType application/x-font-ttf A31536000
    	ExpiresByType application/vnd.ms-fontobject A31536000
    	ExpiresByType application/x-font-otf A31536000
    
    	# Audio
    	ExpiresByType audio/mpeg A31536000
    	ExpiresByType audio/ogg A31536000
    	ExpiresByType audio/wav A31536000
    	ExpiresByType audio/wma A31536000
    
    	# Zip/Tar
    	ExpiresByType application/x-tar A31536000
    	ExpiresByType application/x-gzip A31536000
    	ExpiresByType application/zip A31536000
    </IfModule>
    <FilesMatch "\.(?i:css|js|htm|html|rtf|rtx|txt|xml|gif|ico|jpg|jpeg|jpe|png|svg|svgz|asf|asx|wax|wmv|wmx|avi|mov|qt|mp4|m4v|mpeg|mpg|mpe|pdf|swf|ttf|ttc|eot|otf|mp3|m4a|ogg|wav|wma|tar|gz|gzip|zip)$">
    	<IfModule mod_headers.c>
    		Header set Pragma "public"
    		Header append Cache-Control "public, must-revalidate, proxy-revalidate"
    		Header unset ETag
    	</IfModule>
    </FilesMatch>
    <FilesMatch "\.(?i:css|js|gif|ico|jpg|jpeg|jpe|png|pdf|swf|ttf|ttc|eot|otf)$">
        <IfModule mod_headers.c>
    		Header unset Set-Cookie
    	</IfModule>
    </FilesMatch>
    # END wtwp_cache
    
    # BEGIN wtwp_security
    <IfModule mod_rewrite.c>
    	RewriteEngine On
    	RewriteBase /dallasgaragedoors/
    	RewriteRule ^wp-admin/includes/ - [F,L]
    	RewriteRule !^wp-includes/ - [S=3]
    	RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
    	RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
    	RewriteRule ^wp-includes/theme-compat/ - [F,L]
    </IfModule>
    <Files "wp-config.php">
    	Order allow,deny
    	Deny from all
    </Files>
    Options -Indexes
    # END wtwp_security

    so whatever just happened with my .htaccess is causing the error because when i revert back to my old .htaccess everything works just fine until i create another new site on top of the existing ones.

    anyone have any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • This link may help you, it’s somewhat along the same lines your issues, from what I understand…
    http://wordpress.org/support/topic/multisite-network-not-working?replies=5

    I am having this same problem.

    When you create a new site, it takes the subdirectory name and inserts it as the RewriteBase near the bottom of your .htaccess file. in your case, dallasgaragedoors. You can move everything in between the #Begin WordPress and #END WordPress to the bottom of the file to hack around this. But I’ve found that page load time suffers because the site looks at the first RewriteBase which is incorrect at dallasgaragedoors and then corrects itself by looking below at the RewriteBase inside the #Begin and #End WordPress.

    I tried deleting the RewriteBase line completely inside the wtwp security section but it is remade when you create a new site. so annoying.

    I’m running on GoDaddy shared hosting with sub directories. Fresh install of WP 3.6

    Thread Starter pyroboy024911

    (@pyroboy024911)

    Ok this might sound weird but it worked and i can’t explain it myself… so as i would add a site i would just replace the .htaccess every time with a working version, i did this about three times mind you. Then after awhile i the problem resolved itself and wordpress stopped over writing my .htaccess… anywho this is my current .htaccess file since then ive added caching and still everything has been running smooth since. I really can’t explain it but just try it :/

    PS upgrade to 3.6 went smooth as well…

    # Redirect non-www urls to www
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
    RewriteCond %{HTTPS}s ^on(s)|
    RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    
    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
        <IfModule mod_headers.c>
            Header append Vary User-Agent env=!dont-vary
        </IfModule>
            AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
        <IfModule mod_mime.c>
            # DEFLATE by extension
            AddOutputFilter DEFLATE js css htm html xml
        </IfModule>
    </IfModule>
    # END W3TC Browser Cache
    # BEGIN W3TC Page Cache core
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteCond %{HTTP:Accept-Encoding} gzip
        RewriteRule .* - [E=W3TC_ENC:_gzip]
        RewriteCond %{REQUEST_METHOD} !=POST
        RewriteCond %{QUERY_STRING} =""
        RewriteCond %{REQUEST_URI} \/$
        RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
        RewriteCond "%{ENV:SUBDOMAIN_DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index.html%{ENV:W3TC_ENC}" -F
        RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index.html%{ENV:W3TC_ENC}" [L]
    </IfModule>
    # END W3TC Page Cache core
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    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).*) garagedoorsolutionstx/$1 [L]
    RewriteRule ^(.*\.php)$ garagedoorsolutionstx/$1 [L]
    RewriteRule . index.php [L]
    </IfModule>
    
    # END WordPress
    
    # BEGIN wtwp_cache
    # END wtwp_cache
    
    # BEGIN wtwp_security
    # END wtwp_security
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding a site creates Internal Server Error 500’ is closed to new replies.