Blog setup from Subdomain to Subfolder and back

Hi,
I have the problem that my host does not allow wildcards so I cannot use subdomains for my blogs. After I pulled the database, completely reinstalled the MU blog and spent another two days restructuring my link menu (customized, not by category but by tags, so it's quite some work), this time using subfolders it worked. When the blogs are set up in subdomains, everything seems to work fine at first. I get a password sent, login links etc. - except that when I call up the new blog, I get a "page does not exist" error and get redirected to a search engine to search for it. :slight_frown:

Now, by using subfolders for my blogs, everything worked fine, the blog was created etc.

Now comes the problem...

By using the subfolder solution, MU adds a /blog offset to the permalink structure. But I wanted my permalink to only show the postname and nothing else. So the link became mydomain.com/blog/title-of-post instead of mydomain.com/title-of-post. I found a plugin and instructions to remove this /blog offset which also worked fine. Except now I am forced back to set up my blogs in subdomains. Which also means that my existing blogs no longer work!

I also tried to install the domain mapping plugin but I assume this also only works for subdomain-blogs and not for subfolder-blogs, right?

So I removed everything again, willing to live with the /blog offset (maybe change it to something else like "site" instead - if only I knew how). Unfortunately... now my blog creation dashboard now is still set to create blogs in subdomains!

Any ideas what to do to get back to my subfolder structure? Any database query or editing files? A clean install would certainly be an option - it would just - again - set me back with two more days of work creating the link menu (s.a.). I'd love to avoid that...

Any feedback would be greatly appreciated. Just remember - I not a coder, so speak "slowly" :slight_smile:

  • Andrew
    • Champion of Loops

    Hiya,

    By using the subfolder solution, MU adds a /blog offset to the permalink structure.

    I'm afraid you're a bit stuck with that. That is added into the permalink structure on directory sites.

    I also tried to install the domain mapping plugin but I assume this also only works for subdomain-blogs and not for subfolder-blogs, right?

    Our domain mapping plugin works on directory sites as well.

    Thanks,
    Andrew

  • Onlina
    • WPMU DEV Initiate

    Whow, that was a quick reply. Thanks.

    yeah, I'm afraid I'll have to live with the offset. Is there a way to rename it?

    And what about my main problem - getting back to blog creation in subfolders? Which file is responsible for that?

  • Andrew
    • Champion of Loops

    Is there a way to rename it?

    Yes but you would have to edit WPMU. I'm afraid this isn't something we can assist with. I've never had the need to change this so I'm not even sure which file it's in.

    And what about my main problem - getting back to blog creation in subfolders? Which file is responsible for that?

    Probably best to just reinstall.

    Thanks,
    Andrew

  • Onlina
    • WPMU DEV Initiate

    Hi Andrew,

    is there a way to save the links, link categories and link texts so I don't have to start all over again? I managed to save and recover posts but not links. Or in other words: what is the best way to backup/restore the database?

    Thanks

  • Onlina
    • WPMU DEV Initiate

    O.k. had to put on my thinking cap and finally came up with the following shortcut to avoid the complete reinstall.

    1) I installed the plugin WP Database backup. This neat little plugin allows to select which part of the database to backup and also does scheduled backups (just in case someone is interested in this feature).

    2) I created a new database (and left the old one for just-in-cases).

    3) I pulled the wp-config.php and ran the install-index.php again with the new database data

    4) Lastly, I used the import function in my phpMyAdmin

    And - voila - blogs get created in subfolders again, all tags, links, widgets, categories etc. are still working (as much as I can tell so far). However there is still that nasty /blog offset problem. Oh, well...

    Thanks Andrew for your help.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.