The MU forums have moved to WordPress.org

dash ("-" character) in subdomain address - possible? (7 posts)

  1. Radja
    Member
    Posted 16 years ago #

    I tried to hack WPMU so that it would be possible to create blos with address like: my-blog.domain.com, I mean with characters "-" or "_" etc. which is normally forbidden

    I managed to do so by editing regular expression from

    [a-zA-Z0-9]

    to

    [a-zA-Z0-9.-]

    , It works fine.

    I ask if there is any reason why it is not allowed? I mean will this make any problems in the future, or something like that?

    thanks for your advices, I am new with WPMU..

  2. silicon
    Member
    Posted 16 years ago #

    Which file did you edit to allow this. I would like to do the same.

    Thanks,

  3. drmike
    Member
    Posted 16 years ago #

    it's wp-include/wpmu-function.php

    Not sure why it's not in there.

  4. Radja
    Member
    Posted 16 years ago #

    yes, I have edited file: wp-include/wpmu-function.php line 1011 for blog name, line 910 to allow same with usernames.

    I think it would be nice to include it in official release of WPMU ;)

  5. drmike
    Member
    Posted 16 years ago #

    Did you open up a trac ticket and explain your reasoning?

  6. Radja
    Member
    Posted 16 years ago #

    no, not yet. As I am new here, I am just looking around here. ok, I will look at "trac" and try to open up ticket

  7. Radja
    Member
    Posted 16 years ago #

    I have opened ticket #363 solving this issue here:
    http://trac.mu.wordpress.org/ticket/363

About this Topic