Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: Unexpected URL for site homepage
Status | Resolved |
Add-on / Version | Publisher |
Severity | Trivial |
EE Version |
Bonkers T-Shirts
Jul 23, 2013When I try to load my homepage:
http://ipaddress/domainname.com/index.php
...it loads okay, but it outputs this URL in the address bar:
http://ipaddress/domainname.com/index.php/en/http:/ipaddress/domainname.com
I’m using a domain reference on hosting platform by the way, which is why there is an IP address and then the domain name.
BoldMinded (Brian)
Hi there. What is your site_url value set to?
Oliver Cannell
In “General Configuration” it’s set to “index.php”. Is that correct?
BoldMinded (Brian)
Try setting it to the full http address.
Oliver Cannell
Now I get this in the address bar: http://ipaddress/domainname.com/http://ipaddress/domainname.com/index.php/en/http:/ipaddress/domainname.com
BoldMinded (Brian)
Can you edit the ticket and add the real URL to the field provided in the form so I can see it?
BoldMinded (Brian)
Also try adding to your config.php file:
$config[‘site_url’] = “http://ipaddress/domainname.com/index.php”;
Oliver Cannell
Here is the site URL: http://176.32.230.29/invertec.com/index.php
I’ve now changed the site_url in General Config back to index.php And I’ve now also added the following line to the config.php file: $config[‘site_url’] = “http://176.32.230.29/invertec.com/index.php”;
BoldMinded (Brian)
Try adding a trailing slash, so index.php/
Oliver Cannell
I’ve tried adding a trailing slash to the index.php in the General Config, but get the following: http://176.32.230.29/invertec.com/index.phpindex.php/en/http:/176.32.230.29/invertec.com/index.php
BoldMinded (Brian)
Publisher 1.0.3 emailed to try
Oliver Cannell
Thanks, although it doesn’t seem to have made a difference. I have also now mapped one of my spare domain names to the site, but am still getting this URL: http://www.websitedesignswindon.com/index.phpindex.php/en/http:/www.websitedesignswindon.com
Oliver Cannell
Right then, after a bit of “going back to square one” with the settings… I’ve got it doing this: 1) This URL “www.websitedesignswindon.com” loads as this in the address bar “http://www.websitedesignswindon.comindex.php/en/http:/www.websitedesignswindon.com” 2) This URL “http://www.websitedesignswindon.com/index.php/en” loads the site, but without the stylesheet etc.
Oliver Cannell
OK so after playing around with the Settings, I’ve found the following:
With “Add URL prefix” set to Yes and “Force URL prefix” set to Yes:
1) http://www.websitedesignswindon.com/index.php/en loads the page okay.
2) www.websitedesignswindon.com doesn’t load anything and changes URL in address bar to “http://www.websitedesignswindon.comindex.php/en/http:/www.websitedesignswindon.com”
3) www.websitedesignswindon.com/index.php/fr doesn’t load anything and changes URL in address bar to “http://www.websitedesignswindon.comindex.php/fr/http:/www.websitedesignswindon.com/index.php/fr”
Oliver Cannell
By adding a trailing slash to the “URL to the root directory of your site” in General Config, the en, fr and de pages now load okay. However, going to “http://www.websitedesignswindon.com” still changes the url in the address bar to “http://www.websitedesignswindon.com/index.php/en/http:/www.websitedesignswindon.com”
BoldMinded (Brian)
“loads the site, but without the stylesheet etc.” - You probably need to use the {root_url} value to load assets. The docs explain this a bit more.
Can you follow the steps noted in the EE docs to remove index.php from the URL so we can simplify things?
Oliver Cannell
I’ve now done that. “http://www.websitedesignswindon.com” now loads the site and changes the URL in the address bar to “http://www.websitedesignswindon.com/en”
BoldMinded (Brian)
Ok, so thats good. It works, but I need to figure out why its not working with the index.php present.
Oliver Cannell
Yeah it seems to be working at the moment. Thanks a lot. 😊
BoldMinded (Brian)
I think I figured it out and patched it this morning. So this should be fixed in the next release.