Developer forum

Forum » CMS - Standard features » 404 with language layers and one domain

404 with language layers and one domain

Aki Ruuskanen
Aki Ruuskanen
Reply

Hi,

Is it possible to (without a hack) get a 404 response per language layer if you are using one domain for all language layers?

Regards / Aki


Replies

 
Nicolai Pedersen
Reply

Hi Aki

On website settings you can set a 404 for each website... Is that what you mean?

BR Nicolai

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Hi,

As I understand that only works with websites. I mean with language layers. 

/Aki

 
Magnus Holmberg
Reply

Hi,

Anyone knows if this works with language layers as Aki asks?
That you can have a 404 page per language layer.
When redirected to the 404 you also change language.

/Magnus

 
Nicolai Pedersen
Reply

Hi Magnus

You cannot if you have only one domain.

Let's say you have company.com and a 404 comes in at company.com/whateverIhaveNoClueWhatThisIs/wp_login.php. How can Dynamicweb know which language that belongs to? Or do you want some kind of partial match based on best guess?

BR Nicolai

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Hi,

Good point. 

I guess you should have to render the regional part in the URL for it to work.  https://easylaser.com/sv-se/blog/randomurl

/Aki

 

 
Magnus Holmberg
Reply

Hi,

I see your point. In our case as Akis says we have the url like /sv-se/... /en-us/ and so on.
Thanks for fast response.

/Magnus

 

You must be logged in to post in the forum