Skip to content

Instantly share code, notes, and snippets.

View giulianopires's full-sized avatar
💭
i may be slow to respond.

giuliano pires giulianopires

💭
i may be slow to respond.
View GitHub Profile
@giulianopires
giulianopires / sunrise.php
Created May 20, 2021 03:56 — forked from badfeather/sunrise.php
Allow nested folder paths in WordPress Multisite with subdirectories
<?php
/**
* Allow nested folder paths in WordPress Multisite with subdirectories
* Updated from http://maisonbisson.com/post/14052/wordpress-hacks-nested-paths-for-wpmu-blogs/ to account for latest WordPress code
* .htaccess rules also need to be changed to:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]