WordPress Network and Error 500 (9 posts)

  1. theqkash
    Posted 5 years ago #


    I have currently set up WordPress Network on newly created wordpress site, and after setting it to work as 'subdirectory multisite' it is giving me Internal Server Error when I set up the .htaccess file using data provided when installing

    How to fix that?

  2. Do you have mod_rewrite enabled on your server?

  3. theqkash
    Posted 5 years ago #

    Yup, I'm using wordpress-es normally there, configuring rewriting as I want, but this multiuser htaccess is not working :(

  4. What are you trying to put in the .htaccess? Can you paste it here?

  5. theqkash
    Posted 5 years ago #

    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).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

  6. And you are *replacing* your htaccess file with this content, correct? Not just adding it at the bottom?

  7. theqkash
    Posted 5 years ago #

    Yup, I'm replacing whole content of that file.

  8. theqkash
    Posted 5 years ago #

    Support of my webhost have gave me that:

    RewriteRule: bad argument line '^([_0-9a-zA-Z-]+/)?files/(.+)'

  9. # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+)
    wp-includes/ms-files.php?file=$2 [L]

    You've got a carriage return at the end of it. make it all one line.

Topic Closed

This topic has been closed to new replies.

About this Topic