Extension, Fieldtype, Module



ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From iain


You must be logged in to post.

Links randomly pointing to server IP instead of domain

Bug Report



We have a site built with Taxonomy for all navigation where every few days or so, the links are output with the IP address, instead of the site’s domain for {node_url}. As example, an HTML link in the navigation will show http://x.x.x.x/segment1 instead of http://www.mydomain.com/segment1 - it is only effecting our taxonomy menus.

We are running EE 2.10.1 and Taxonomy 3.1.1

Any recommendations on how to troubleshoot this would be greatly appreciated.

We’ve reviewed our server settings and htaccess file. Nothing here was found that would be causing this from what we noticed.


# 1

Hi There

The url that taxonomy uses to prefix all internal links is the base EE site_url setting, Admin -> General Configuration.

Does it have an IP in there or the full domain?

If that is showing a full domain, are you using any config overrides which would overwrite this setting in any circumstances?

# 2

Also, are you using any caching add-ons or native EE caching on any Taxonomy or outer tags?

If there is a user viewing your site via the server IP and the results are being cached they will be served up until the cache expires.

I believe native EE caching uses url segments to determine if a cached result should be used, not the full domain path so == mydomain.com/about as far as caching goes.

# 3

Hi Iain,

It has the full domain correctly showing in the general configuration settings page.

The config file uses the following settings: $config[‘site_url’] = “http://”.$_SERVER[‘HTTP_HOST’];

The site does use CE Cache.

We have htaccess redirect rules in place on any connections made via IP, which forwards to the full domain.

As a side note, would it be possible to not prefix links on the node_url output? This would be of tremendous value to us. For example, when running a site on our data center, this would save significant resources since our systems would keep requests internal for such relative links. Whereas, with full domain links, traffic is routed out of the data center then back to it.

Lola Maurice
# 4
Lola Maurice

An add-on taxonomy is a fit and path for the range by all choices. The matter of the Dermal fillers yeovil is held for the scenes. Partners are done for the use of the options for the approval of all changes for the citizens.