Link Issues

Discussion in 'Installation & Upgrades' started by Trey, Jan 23, 2013.

  1. Trey

    Trey New Member

    Hello All,

    I'm having trouble with links from a page within the script. The link leads to a sub-domain of the main account domain. When ever the link is clicked on, I get the following result:

    1. File Missing: /home/treyrey/public_html/templates/common/index.tpl


    2. It will return a 404 within the same page that the link text is on.

    My plan is to have another php script that this link will lead to at the sub-domain. It's like the CMS script only wants returns within it's on pages, even if its a sub-domain. Also, the script is not installed on the sub-domain

    Hope this isn't confusing.


  2. Gleb_S.

    Gleb_S. Subrion Designer Staff Member

    Hello Trey!
    Welcome to our support forums!

    First of all, make sure that when you adding or editing a page in the admin panel you have this options:

    External URL: ON
    Page External URL:

    Second. Be aware if your subdomain's folder is in the same folder with subrion files.
    For example, you may have public_html folder with the list of these files/folders:

    Code (Text):

    In this case your domain folder may be controlled by .htaccess file of the subrion system.
    Try to edit .htaccess file; add this rule to the file and save the changes:

    Code (Text):

    RewriteRule ^subdomain_folder/(.*)$ subdomain_folder/$1 [L]
    after the lines:

    Code (Text):

    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !(.*)\.(.*)$
    RewriteRule ^(.+[^/])$ http://%{HTTP_HOST}%{REQUEST_URI}/ [L,R=301]
    where 'subdomain_folder' is the name of the folder where files of the subdomain are stored.

    If none of these steps helps please create a ticket at our helpdesk with a link to this thread and your FTP details. We will help you to solve the problem.
  3. Trey

    Trey New Member

    Thank you for your response. A couple of hours after I posted, I realized it indeed was the .htaccess file causing the issue. I made some changes and it worked.

    Thank you.

  4. Vasily_B.

    Vasily_B. Project Manager

    Nice, don't hesitate to ask if you have any questions.
  5. bcfiber

    bcfiber New Member

    Hi to everyone ;)

    After uninstalling SSL from the our server (we kept dedicated IP address) when typing in the browser our IP address we are getting the following message:

    File Missing: /home/webortm/public_html/templates/common/index.tpl

    When we type everything is fine. Could you please clarify to us is it mistake in the CMS or in the server?

  6. Gleb_S.

    Gleb_S. Subrion Designer Staff Member

    Hello bcfiber and welcome to our support forums!

    The issue appears within our script:

    Subrion CMS has its own URL handler/rewriter that uses domain you opened when installing the script.

    So, if you are trying to use IP address instead of domain name the URL engine looks for matches and when it founds nothing it tries to display index.tpl file.

    That's why you see the "File Missing" error.

    Therefore you can use only one base (domain or IP) at a time.

    If you want to use IP you can temporary upload a file called "" into "includes" folder with this code included:



    $this->_config['baseurl'] = '';
    Use your IP address instead of "".
    If you need any further assistance please let us know, we will be glad to help you!
  7. bcfiber

    bcfiber New Member

    Hello Alex :)

    That's it! Now everything is ok ;)

    Thanks for the help! Have a nice day!
  8. Gleb_S.

    Gleb_S. Subrion Designer Staff Member

    Always at your service!

    Feel free to contact us if you need any further assistance!
  9. MCoffman

    MCoffman New Member


    Thank you for this thread, It helped me out with a problem not related to Subrion, but operating under a sub-domain of my Subrion Site. You guys are GREAT!

Share This Page