Try our conversational search powered by Generative AI!

Problems with Simple Address

Vote:
 

For some reason, on the site that I'm developing, if I set a simple address for a page it gives a 404 Not Found. What makes this strange is that although simple addresses don't work on our CI or test servers, they  work just fine on my development environment. I've tried just about everything I can think of and nothing seems to help, and I've completely run out of ideas what could be causing the 404s.

The code is the same on all environments and it makes no difference whether the code is compiled to Debug or Release.
The dev and CI environments share a common database, so the problem is not some configuration that's stored in the DB.
I've gone through all .config files and there's no differences between them that could explain the issue.
On my dev environment I've tried both IIS and IIS Express and both work fine, so the reason isn't that servers are running IIS and the dev environment is usually running IIS Express.
On the CI environment there are other Episerver 7 sites and none of them have the same issue.

Any ideas what I could be missing here?

#68343
Mar 20, 2013 11:42
Vote:
 

The problem with simple addresses seems to have been fixed with EPiServer 7 - Patch 2.

EDIT: It seems that Patch 2 didn't fix this. It must have just been a coincidence that the problem was fixed around the the same time as updating to Patch 2.

#69115
Edited, Mar 22, 2013 9:02
Vote:
 

I have the same problem, but upgrading to Patch 2 did not solve it for me.

 

I'm really stumped, does anyone have any idea where I might look to find the solution?

#70242
Edited, Apr 16, 2013 10:04
Vote:
 

Same problem here. 

#71999
Jun 04, 2013 22:55
Vote:
 

Have it to, upgraded from EPi6

#72001
Jun 05, 2013 8:22
Vote:
 

You could try to set strictLanguageRouting=false on configruation element episerver.sites.site.siteSetting element.

#72005
Jun 05, 2013 9:29
Vote:
 

Hi, no that didn't solve this issue.

#72009
Jun 05, 2013 10:13
Vote:
 

Have anyone solved this issue yet? Also have it. :(

#72260
Jun 12, 2013 0:35
Vote:
 

Hmm, support said that you need a trailing slash in your siteUrl, didn't solve my problem though. But I noticed that I had added the simple address on a non master language page, and when I moved it to the master language, the simple address worked.

#72396
Jun 14, 2013 14:57
Vote:
 

I've run into this problem again now with a different project and this time Patch 2 didn't help at all.

#73035
Jul 04, 2013 14:24
Vote:
 

Any news on this? Shortcut links are only working for the main language on a site that we are currently working with. I tried installing patch #3 http://world.episerver.com/Articles/Items/EPiServer-7---Patch-3/ but unfortunately, this did not solve our problems.

#73091
Jul 05, 2013 12:52
Vote:
 

Ok, so now I've found the solution to my problem. My siteHosts in episerverframework.config looked like this:

<siteHosts siteId="Customer.Web">
<add name="*" language="en" />
<add name="www.customer.com" language="en" />
</siteHosts>

when I changed it to this it started working.

<siteHosts siteId="Customer.Web">
<add name="*" />
</siteHosts>

But I guess you should be able to have it like the first config?

 

#74834
Sep 09, 2013 15:15
Vote:
 

I can confirm that Erik's solution works for me too. Removing all other host mappings than <add name="*" language="fi" /> fixes the simple address handling for all languages, not just for the master language (in this case "fi"). I'm pretty sure simple addresses should work even if you define other hosts, since in a multi-site (enterprise) environment you have to be able to specify multiple hosts.

#74845
Sep 10, 2013 6:42
Vote:
 

A little update on my previous post:

It's actually the language="fi" parameter that breaks the simple addresses.

This doesn't work:
<add name="*" language="fi" />
<add name="mysite.fi" language="fi" />

But this does work:
<add name="*" language="fi" />
<add name="mysite.fi" />

So try removing the language parameter and see if it makes any difference. I still think this is not intended behaviour, though.

#74858
Sep 10, 2013 15:30
Vote:
 

Well, it's reported as a bug now: Bug #105507: Simple address problems with language 

Not verified yet though, but guess it's a matter of time.

#74926
Sep 11, 2013 15:56
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.