WordPress.org

Ready to get started?Download WordPress

Forums

networks site names width dots (2 posts)

  1. eligijus
    Member
    Posted 3 years ago #

    It will be good to allow point symbol in the network's site name, when in subdirectory mode.
    This is useful, when doing site name from name's first letter and surname such as "examlple.com/n.surname"

    I use such names about two years on my WordPress networks, but each time I must edit WordPress source code.

    Always need to change [_0-9a-zA-Z-] to [\._0-9a-zA-Z-] in the:
    * .htaccess
    * before WP 3.1 version wp-admin/ms-edit.php 149 line
    * in WP 3.1 tested version wp-admin/network/site-new.php 37 line if ( ! preg_match( '/(--)/', $blog['domain'] ) && preg_match( '|^([a-zA-Z0-9-])+$|', $blog['domain'] ) )

    No problems were found with used plugins.

  2. The reason that's not permitted is because not every host supports n.surname.example.com (which is the URL you'd get if you flipped over from subfolder to subdomain). So to protect you from the possibility of crashing and burning, you get what we've got.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags