• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Problem with subdomain

Status
Not open for further replies.

jfrdavid

Chevereto Member
Good evening Rodolfo

I still have the problem of URL rewriting because I have a multi domain!

I explain the thing I try
Code:
Tests at: $ _SERVER ['DOCUMENT_ROOT'] = /var/www/monsitesites/mysite/public_html/monsitess

Tests at: $_SERVER ['HTTP_HOST'] = http://www.monsites.uk

Tests at: $_SERVER ['SERVER_NAME'] = http://www.monsites.uk

I started working on these three lines and it is in these three lines which is the solution to my problem of

Code:
define('__ROOT_DIR__', str_ireplace(rtrim('\\','/',dirname(dirname(__FILE__))).'/' )); 
define('__RELATIVE_ROOT__', str_ireplace(rtrim($_SERVER['DOCUMENT_ROOT'], '/'), '', __ROOT_DIR__)); 
define('__BASE_URL__', SERVER_PROTOCOL.HTTP_HOST.__RELATIVE_ROOT__);

Before I had this address:
Code:
http://monsites.uk/public_html/monsites/che202/index.php

By these j'obtient this web address:
Code:
http://monsites.ukcontact   missing:  /che202/

Now I have changed address in the lines below:

That's what I read at this time by cons I think you did a great job on this program congratulation!

Thank you for your help if you could help me.

I continue to test the new version 2.02 and I will write all the problems I encounter here

good evening
 
Try to add this line before the ?> on config.php:
PHP:
echo 'ROOT_DIR: '.__ROOT_DIR__.'<br>RELATIVE_ROOT: '.__RELATIVE_ROOT__.'<br>BASE_URL: '.__BASE_URL__.'<br>SERVER DOCUMENT ROOT: '.$_SERVER['DOCUMENT_ROOT'];

Copy what prints and paste it here.
 
Use this:
Code:
define('__ROOT_DIR__', '/public_html/monsites/che202/'); 
define('__RELATIVE_ROOT__', '/che202/');
 
Rodolfo Bravo it works perfectly now

Rodolfo good thank you I continue to test the new version 2.02 and I'll let you know if there are bugs!

I also added my host in this forum for compatibility dechevero 02.02


thank you very much
 
Status
Not open for further replies.
Back
Top