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
I started working on these three lines and it is in these three lines which is the solution to my problem of
Before I had this address:
By these j'obtient this web address:
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
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