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, 2013

When 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.

#1

BoldMinded (Brian)

Hi there. What is your site_url value set to?

#2

Oliver Cannell

In “General Configuration” it’s set to “index.php”. Is that correct?

#3

BoldMinded (Brian)

Try setting it to the full http address.

#4

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

#5

BoldMinded (Brian)

Can you edit the ticket and add the real URL to the field provided in the form so I can see it?

#6

BoldMinded (Brian)

Also try adding to your config.php file:

$config[‘site_url’] = “http://ipaddress/domainname.com/index.php”;

#7

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”;

#8

BoldMinded (Brian)

Try adding a trailing slash, so index.php/

#9

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

#10

BoldMinded (Brian)

Publisher 1.0.3 emailed to try

#11

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

#12

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.

#13

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”

#14

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”

#15

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?

#16

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”

#17

BoldMinded (Brian)

Ok, so thats good. It works, but I need to figure out why its not working with the index.php present.

#18

Oliver Cannell

Yeah it seems to be working at the moment. Thanks a lot. 😊

#19

BoldMinded (Brian)

I think I figured it out and patched it this morning. So this should be fixed in the next release.

Login to reply