Support » Networking WordPress » Add custom applicatio to subfolder in Multisite

  • Hello

    I have a Multisite website with subdirectory working fine.

    I want to add a custom Laravel app to the website

    For Example, I created a folder called “test” in the main root directory.

    Now when a user comes to the website in website.com/a1/test it needs to be directed to that “test” folder in the main directory.

    How can I achieve this

Viewing 1 replies (of 1 total)
  • Hi,

    You can add a redirection:

    Using .htaccess

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^a1/test/?$ /test/ [L,R=301]
    </IfModule>

    Using https://wordpress.org/plugins/redirection/

    Add a new redirection rule to website.com/a1/:

    • Source URL: /a1/test
    • Target URL: /test
    • Action: Choose “Redirect to URL.”
    • Method: Choose “301 – Moved Permanently.”
    • Click on “Add Redirect.”
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.