Developer forum

Forum » Feature requests » URL rewriting
Nuno Aguiar
Reply

Hi,

 

The URL rewriting should rewrite "Default.aspx?AreaID=0" to the first page URL of that AreaID

 

This would help index customized menus, allowing the user to change the first page of each website whenever he pleases, and the URL would always be correct. Not to mention that it would respect the specific URL the user may set for that website.

 

We use this a lot with language versions.

 

Best Regards,


Replies

 
Morten Bengtson
Reply

+1

 
Anders Ebdrup
Reply

+1

 
Nicolai Høeg Pedersen
Reply

Does the "Redirect first page to /" do the trick maybe?

 

BR Nicolai

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Unfortunatelly no. We have clients that do not have a domain for each language. For those situations, it would break. I believe 1st website page (AbsoluteLevel=1, Sort=1) is the way to go.

 

Nuno

 
Nicolai Høeg Pedersen
Reply

Hi Nuno

 

If you go to http://www.dynamicweb.dk/Default.aspx?AreaID=5 you are redirected to http://www.dynamicweb.dk/Forside.aspx?AreaID=5 - so the SEO URL is used, but of course you should not have the AreaID parameter.

 

Also if you are using ISO code or language name in the URL of type path, you can access the first page using i.e.  /da-dk and /en-uk (/da-dk.aspx and /en-uk.aspx). But it is not handled by a redirect though.

 

BR Nicolai

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Yes, the redirect to first page can work if you do set the iso-code or language name. The only problem I see is that is not bullet proof. What if the client decides to change those settings?

 

Maybe a mixed solution. If that is set, perfect, otherwise the workaround could be the 1st page. Unless there's something else I might be missing.

 

Nuno

 
Nicolai Høeg Pedersen
Reply

It already redirects as I say. Also without the checkbox...

 

And yes, if they change settings the behaviour changes. I'm not gonna introduce (more) checkboxes that does nothing :-)

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Please don't. I was just raising the issue if the user does not have the language ISO active in the customized URL's settings. I trust you guys will figure out the perfect solution.

 

Looking forward for it.

 

Nuno

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Please don't. I was just raising the issue if the user does not have the language ISO active in the customized URL's settings. I trust you guys will figure out the perfect solution.

 

Looking forward for it.

 

Nuno

 
Nicolai Høeg Pedersen
Reply

Hi Nuno

 

It already Works, also without the ISO active in the URLs....

 

Dynamicweb will redirect from /Default.aspx?AreaID=XX to /NameOfFirstPage.aspx already. also without using ISO. Only thing is, that it includes the AreaID=XX in the QS which it probably should not.

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Sorry, I was testing in a older version. Just tested it in 8.2.1.8 and redirect is working fine.

 

Nuno