Support » Networking WordPress » Multisite htaccess

  • innpuls



    I have a question.
    What does this line in multisite .htaccess mean or?
    RewriteRule ^(.*\.php)$ $1 [L]

    If I include it in my page, then the 404-handling is not good any more.
    Because if I surf the url e.g. /test/test.php a 500-error comes.


Viewing 1 replies (of 1 total)
  • Moderator bcworkz


    The usual rule redirects .php requests to an appropriate subfolder when used as RewriteRule ^(.*\.php)$ wp/$1 [L] like we see in the example in WP docs. But without the “wp/” it’ll just rewrite to the same place, causing an infinite loop situation, thus the 500 status.

    Go to Network admin, then the Network Setup settings. Does the .htaccess code there exactly match what you have? If it does, you could try commenting the line out by placing a # at the start of the line. I’m not sure what impact it’ll have on your network, but I don’t see what purpose it serves if not to redirect to a different sub-folder.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.