WordPress.org

Ready to get started?Download WordPress

Forums

WordPress MU Domain Mapping
[resolved] Adds tailing slash after input (7 posts)

  1. taropaa
    Member
    Posted 2 years ago #

    For some reason the plugin adds a / after the domain that the users inputs. Needless to say, this renders the whole mapping as non functional.

    Going into the database i see that the domain is http://mydomain.com/ instead of http://mydomain.com.

    I don't know if it was caused by user input, but when I tried to re-add it, it would not budge.

    Would be a good idea to check for slashes in the domain name since that would really screw things up.

    http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

  2. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 2 years ago #

    That sounds like you have something going on with your configuration or another plugin is adding it.

    Try turning off all you plugins except domain mapping and see if the slash still gets added.

  3. taropaa
    Member
    Posted 2 years ago #

    I don't think it's that. The plugin was working ok and after the 3.4 update things started to go crazy.

    I also found a tailing slash in the plugins php file. I removed it and tried adding a new domain and it worked.

  4. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 2 years ago #

    what do you mean by plugins php?

  5. taropaa
    Member
    Posted 2 years ago #

    I mean the wordpress-mu-domain-mapping/domain_mapping.php file.

    echo "<p>http://<input type='text' name='domain' value='' />/
    ";

    thats the culprit. I removed the / from there. I don't know if that had any impact at all, but after I removed it and tried adding another domain, it seems to be working. I wil post here again if it starts miss behaving.

  6. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 2 years ago #

    That just shows the slash on the screen. It doesn't add it anything to the database.

  7. taropaa
    Member
    Posted 2 years ago #

    Yup I figured... Might have been a glitch or the user may have copied it by mistake...

    Thanks Ron for your support and interest on this matter :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.