[wp-edu] WordPress Multisite site names

Adam Norwood ANorwood at law.utexas.edu
Tue May 1 20:36:56 UTC 2012

Hi Dave,

Bill beat me to the punch, but as he says the size of the ‘path’ column in the database is limited to 100 characters. Does MySQL automatically truncate overly-long strings on INSERT? If not, I can’t find where this happen in the WordPress code -- Mike: where’s the code that sets the minimum length to 4? Maybe that’s where the truncation happens and I just haven’t found it yet? I’d be curious to know if there are any other regex rules that block special characters in the path, but as far as I know simple dashes are URL-safe.

Having said that, are you getting a specific error message when trying to use the longer ‘instrumentation-development-group’ path, or does it accept it but truncate it? Is the root of your WordPress network at an already-lengthy path (like example.com/some/subdirectory/path/wp/), which might explain why you only have ~30 characters to work with?

Adam Norwood

Sr. Software Developer ∷ Webmaster
Law Technology Services
University of Texas School of Law
(512) 471.3040     @anorwood

From: wp-edu-bounces at lists.automattic.com [mailto:wp-edu-bounces at lists.automattic.com] On Behalf Of Whisler, Dave
Sent: Tuesday, May 01, 2012 2:19 PM
To: 'wp-edu at lists.automattic.com'
Subject: [wp-edu] WordPress Multisite site names

Does anyone know the official limitations (max length, type of characters) for a new site’s “path” when you create it via the “Add New Site” menu on WordPress 3.2.2 multisite installation.

The on-screen dialog says this “Only the characters a-z and 0-9 recommended”.

However, it does not state the max# of characters.    Nor does it say if a dash between words would be acceptable (or not).

It did allow me to create one like “instrumentation-development”   however, it rejected this one:   ” instrumentation-development-group” so I suspect the limit is around 30 characters.

Does anyone know if dashes in the path name will cause issues?    Does anyone know the official max length?     Shouldn’t this be displayed on the “Add New Site” screen?


David K. Whisler | Oracle & MySQL DBA/Developer, WordPress & Joomla Administrator
UNC Charlotte | The William States Lee College of Engineering
9201 University City Blvd. | Charlotte, NC 28223
Phone: 704-687-3964 | Fax: 704-687-2352
dkwhisle at uncc.edu<mailto:dkwhisle at uncc.edu> | http://www.uncc.edu
If you are not the intended recipient of this transmission or a person responsible for delivering it to the intended recipient, any
disclosure, copying, distribution, or other use of any of the information in this transmission is strictly prohibited. If you have
received this transmission in error, please notify me immediately by reply e-mail or by telephone at 704-687-3964. Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.automattic.com/pipermail/wp-edu/attachments/20120501/b1a16499/attachment-0001.htm>

More information about the wp-edu mailing list