• Hi Guys,

    I’m trying to made 2 WordPress CMS working fine in Azure Web App.

    Have successfully installed my 1st WordPress in /site/wwwroot and my 2nd WordPress to /site/wwwroot/CMS2/

    I can access both wp-admin consolde.
    1. https://myappname.azurewebsites.net/wp-admin
    2. https://myappname.azurewebsites.net/CMS2/wp-admin

    Have also add a new Virtual Path record in my Web App Virtual applications and directories.

    Virtual Path : Physical Path | Type:
    / site\wwwroot Application
    /CMS2 site\wwwroot\CSM2 Application

    Additional Information.
    There is Tab in my Menu from my 1st Website which is linking to the 2nd Website, still with the same theme and layout.

    My issue is, the first page of the second website loads fine.
    ex: https://myappname.azurewebsites.net/CMS2 but when trying to access addition pages still from the 2nd website ex: https://myappname.azurewebsites.net/CMS2/page2 it gives 404 Error.

    I also noted that I have 2 web.config files; 1st in site\wwwroot\web.config and the 2nd site\wwwroot\CMS2\web.config .

    Is anything I need to change the 2nd web.config file?

    Have check all the setting in both WordPress
    1. wp-admin \ Appearance \ Menu (check if the custom URL is correctly configured)
    2. Check for the permalinks also.. all look goods.

    Any possible idea about the problem?

Viewing 1 replies (of 1 total)
  • You need to change the .htaccess file for the root for anything starting with the CMS2 to go there, otherwise it’s checking for existing files and won’t match.
    Redirect /CMS2 https://myappname.azurewebsites.net/CMS2/

    EDIT: Actually, I’m not sure of the rule that will do it. (I copied one from my setup like this before realizing it was just another name for the folder, not the thing I was thinking it was.) But the .htaccess WP rules are checking for the existence of files and the virtual names used are not files, so the root check catches that before the folder check will. Yet I’m not seeing another entry in mine to make it work, but it works for me…not a web app though. Could be something similar in that config file you mentioned.

    • This reply was modified 6 years, 9 months ago by Joy.
Viewing 1 replies (of 1 total)

The topic ‘Multi-Site WordPress site in 1 Single Azure Web App’ is closed to new replies.