• I am getting very close and yet it feels unsolvable.
    I am trying to create aliases for multisite sites. I installed wordpress in https://example.com/wp_blogs/, enabled multisite, and created two sites “first” and “second”. All fine so far. What I want is to make the add the following aliases:

    https://example.com/b/first –> https://example.com/wp_blogs/first
    https://example.com/b/second –> https://example.com/wp_blogs/second

    I created the folders /b/first and /b/second, and added a simple .htaccess file inside that simply rewrites the url to /wp_blogs/*.
    So far I’m getting only “Error establishing a database connection” errors when visiting /b/first/.

    I can’t figure out at which point it’s failing. I don’t mind losing access to /wp_blogs/first/, if it redirects immediately to /b/first.

    The reason I’m doing it this way is because there is another folder /b/third which contains a static HTML website, and I’d like it to use the same url (/b/*).

    Is that possible? Is there a way to change the site url and make wordpress accept the alias as if it was the site url? Is there a better way to do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Why not just install the multisite in the example.com/b/ subdirectory and make your life easier? From there it will be easier to exclude the /b/third web site in the .htaccess rules.

    Update: Personally, I haven’t tested installing a multisite in a subdirectory..

    Anyone knows how to solve this problem? I need help too!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multisite sub-directory alias’ is closed to new replies.