I’m having issues with the variables like path=group/template that are generating an extra domain.
ie : hxxp://domain.com/hxxp://domain.com/template_group/template/
Pagination links are also rendered as :
hxxp://domain.com/hxxp://domain.com/template_group/template/P5
I’m using the Multi Lang Alt method (http://expressionengine.com/wiki/Multi_language_site_alternative/#Slight_modification_for_EE2), and I think this could be related to the problem.
I can find workarounds for the path, but I don’t know how I can handle the pagination links.
If there were an option to just get the “Pxxx” returned, I could bypass this problem.
Can someone help on that point ?
Edit :
In /index.php I have :
$assign_to_config['site_index'] = 'http://domain.com/fr/';
$assign_to_config['site_404'] = 'http://domain.com/fr/404/';
$assign_to_config['global_vars'] = array(
"cc" => "", // added to custom fields in templates
"country_code" => "fr",
"language" => "french"
);
In /en/index.php I have :
$assign_to_config['site_index'] = 'http://domain.com/en/';
$assign_to_config['site_404'] = 'http://domain.com/en/404/';
$assign_to_config['global_vars'] = array(
"cc" => "-en", // added to custom fields in templates
"country_code" => "en",
"language" => "english"
);
In /fr/index.php I have :
$assign_to_config['site_index'] = 'http://domain.com/fr/';
$assign_to_config['site_404'] = 'http://domain.com/fr/404/';
$assign_to_config['global_vars'] = array(
"cc" => "", // added to custom fields in templates
"country_code" => "fr",
"language" => "french"
);
Admin > General Configuration > site’s index page is blank
and in Admin > General Configuration > URL to the root directory is : http://domain.com/
The problem is being caused by the fact that your overrides are specifying a domain for
site_index. That should normally beindex.phpor blank if you’re using mod_rewrite to hide it. The full URL should be saved assite_url. If you change those keys there’s a good chance it will sort it:EE generates URLs by concatenating
site_urlandsite_index, then it adds the path segments on the end. Both your URL and index values have domains in them, hence the weird{path}output.