Domain mapping – with custom subdir

Hi, domain mapping works great, but I want to add a directory to the end of the path. Example:

Main wordpress install on: example.com

Networked blog on: blog1.example.com

Domain mapped to: blog1.com

And now we want to have a custom subdir: blog1.com/shop/ with some files that will lead to some separate html files.

First I thought that it was as easy as adding a dir/files to the blogs.dir/2/ directory but it appears it isn’t. Any ideas/suggestions?

  • aecnu
    • WP Unicorn

    Greetings jorgjansen,

    Thank you for this great question and a significant item to bring up.

    If you want to create a custom sub directory why not create the directory normally and just address it normally? i.e. blog1.com/shop/ with your files in it

    Maybe a redirect will be needed to get the job done depending on how you address the custom sub directory.

    Please advise.

    Cheers, Joe

  • jorgjansen
    • WPMU DEV Initiate

    I’m not sure if I understand what you mean. I mean, there is no physical space located to blog1.com, it is just redirecting visitors to example.com, where the domain mapping plugin will tell to go to blog1.example.com. So there isn’t actually a directory for that.

    The only directory I could think of that could hold files for that directory is the blogs.dir directory.

  • aecnu
    • WP Unicorn

    Greetings jorgjansen,

    Thank you for the additional input, it is certainly appreciated.

    I am referring to the regular method of creating a sub directory like a normal web site installation and creating a redirect to catch the domain specific url.

    For example, physically create the sub directory/folder blog1.com/shop/

    Then use an htaccess or hosting control panel to enforce the redirect, htaccess would look something like:

    Redirect 301 /shop http://realsubsite.url.com

    Please advise.

    Cheers, Joe

  • PC
    • WPMU DEV Initiate

    Hiya,

    Greetings and thanks for being a great community member.

    We haven’t heard from you on this one for long and I am doing a regular followup to see if there is still something we can assist you on this thread.

    Just to manage the support issues more efficiently, I am marking this thread as resolved for now however this is not being done to avoid your questions in any ways.

    Please feel free to mark this is “Not resolved” in case you have further questions and we would be back on it.

    Thanks a lot for being with WPMU DEV.

    Cheers

    PC

    Sales &Support

    Did you know we offer FREE lifetime memberships? Click here to learn more.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.