+ Reply to Thread
Results 1 to 2 of 2

Thread: Script Installation on SUBDOMAIN URL

  1. #1

    Lightbulb Script Installation on SUBDOMAIN URL

    This note would be useful to those wish to have their script installed on subdomain url.

    Symptoms:
    1. Have define('RL_URL_HOME', 'http://subdomain.atdomain.com/') defined in config.inc.php for the site.
    2. Able to get access to the main landing page. However, whenever clicked on any pages, the browser returns ERR_TOO_MANY_REDIRECTS or ERROR 404: Requested page not found.
    3. Turn Apache rewrite to disable in Common->Basic Settings->General->Apache rewrite module, then those pages are accessible.
    4. Turn Apache rewrite to enable, symptom 2 reproduced.


    Root Cause Analysis:
    The original .HTACCESS does not have a RewriteCond rules that cater for subdomain URL


    Workaround:
    1. Open & edit .htaccess in the web-root(e.g. /var/www/html/.htaccess), add RewriteCond %{HTTP_HOST} !^subdomain\. [NC] right after the RewriteCond %{HTTP_HOST} !^www\. [NC], which can be found under # wildcard request section.
    2. Secondly, ensure Multifiled/Location Filter plugins is the latest version.


    There is no proper & clear notes given by flynax to this scenario. Hope this useful.

    Keyword: subdomain, too many redirects / redirect, 404, requested page not found.
    Reference found on this forum that proven the above workaround,
    1. https://forum.flynax.com/showthread....on-a-subdomain
    2. https://forum.flynax.com/showthread....with-subdomain
    3. https://forum.flynax.com/showthread....page-not-found
    4. Assume you have rewrite module enabled in Apache and is working.
    Last edited by Sui soon Chua; July 3, 2020 at 01:50 AM.

  2. #2
    Quote Originally Posted by Sui soon Chua View Post
    This note would be useful to those wish to have their script installed on subdomain url.

    Symptoms:
    1. Have define('RL_URL_HOME', 'http://subdomain.atdomain.com/') defined in config.inc.php for the site.
    2. Able to get access to the main landing page. However, whenever clicked on any pages, the browser returns ERR_TOO_MANY_REDIRECTS or ERROR 404: Requested page not found.
    3. Turn Apache rewrite to disable in Common->Basic Settings->General->Apache rewrite module, then those pages are accessible.
    4. Turn Apache rewrite to enable, symptom 2 reproduced.


    Root Cause Analysis:
    The original .HTACCESS does not have a RewriteCond rules that cater for subdomain URL


    Workaround:
    1. Open & edit .htaccess in the web-root(e.g. /var/www/html/.htaccess), add RewriteCond %{HTTP_HOST} !^subdomain\. [NC] right after the RewriteCond %{HTTP_HOST} !^www\. [NC], which can be found under # wildcard request section.
    2. Secondly, ensure Multifiled/Location Filter plugins is the latest version.


    There is no proper & clear notes given by flynax to this scenario. Hope this useful.

    Keyword: subdomain, too many redirects / redirect, 404, requested page not found.
    Reference found on this forum that proven the above workaround,
    1. https://forum.flynax.com/showthread....on-a-subdomain
    2. https://forum.flynax.com/showthread....with-subdomain
    3. https://forum.flynax.com/showthread....page-not-found
    4. Assume you have rewrite module enabled in Apache and is working.
    Thank you for sharing

+ Reply to Thread