Jump to content

Menu links not working, resolving to IP Address


bobdonkey

Recommended Posts

Hi, I have a problem with the category menu, it is sometimes using a path which is the IP Address of the server, e.g. http://151.252.0.72/mobile-phones.html, instead of the site name. This is the IP of the server, but results in an SSL error.

 

I have set the store path in the SSL settings, and otherwise SSL is working fine.

 

Any ideas?

 

Thanks

Link to comment
Share on other sites

This can happen if the cache is rebuilt when the store is visited from a "bad" domain or IP address. I would recommend forcing all traffix though only one route. This will fix this issue and prevent duplicate content which can affect your SEO. To do this you can force the domain like this;

 

Edit your .htaccess file along these lines:

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.example.com$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301]
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...