Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Subdomain View modes: 
User avatar
Member
Member
Jeroen - 2/18/2009 6:45:39 AM
   
Subdomain
Hello, is it possible to configure a subdomain and redirect users to a specific part of the site when they use that url?

For example: can I use the url blog.mysite.nl to redirect users directly to the blogpage?

Thanks,
Jeroen

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/18/2009 7:49:49 AM
   
RE:Subdomain
Hi,

At first, you need additional license key for the subdomain. Then, you can add this domain name to the site's Domain aliases tab and there you can set the default alias path for this domain name - in your case to the blogs.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
ryan.wheale-gmail - 6/19/2009 3:56:53 PM
   
RE:Subdomain
What if the blog section is part of an existing site? For example, if I were to create a "Blog" folder in my site, under which are all my blogs, is there any way to have a sub-domain point to that directory?

To draw an even better example, in the example site that comes with Kentico CMS, there is a folder called "Special Pages". Is it possible for all the pages under that folder to fall under special.site-domain.com.

If so, how?

Thanks
~Ryan

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/24/2009 6:58:39 AM
   
RE:Subdomain
Hi,

I am not sure if I am getting the right meaning. You want to redirect the user to some page is he will navigate to subdomain.domain.com/blog and the page from domain.com/blog will be displayed?

If yes, you can set the the domain alias redirection in Site Manager -> Sites -> edit your site -> Domain aliases tab and you can set default alias path for particular domain alias.

Or, you can also use URL redirection for the document. For example you have domain.com/blog, so in the blog document properties tab -> Menu you will set the URL redirection where you want to and the user will be redirected to another domain.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
caspian_softdev-yahoo - 10/18/2013 1:06:43 PM
   
RE:Subdomain
HI
in the second case what we must do?

User avatar
Member
Member
caspian_softdev-yahoo - 10/18/2013 1:23:35 PM
   
RE:Subdomain
caspian_softdev-yahoo wrote: HI
in the second case what we must do?


i have www.mydomain.com/states

when a user want to navigate to this adress i want too see the url as
www.states.mydomain.com

is this possible? and how?

best regards

User avatar
Member
Member
kentico_sandroj - 10/19/2013 3:09:18 PM
   
RE:Subdomain
Hello,

You would configure states.mydomain.com to be a valid domain alias then on the mydomain.com/states page you would configure redirection to the subdomain.

You could use a macro as the redirection value:
{%if (domain == "exampledomain.com") {"http://sub.example.com/yourpage"}%}

You could also use custom javascript or any .NET method.

Please let me know if you have any questions.

Best Regards,
Sandro Jankovic

User avatar
Member
Member
caspian_softdev-yahoo - 10/22/2013 6:28:14 AM
   
RE:Subdomain
Hi
Thanks for your reply
i have domain alias stats.mydomain.com for my domain.com

then on the http://mydomain.com/states.aspx i configure URL Redirection of Menu property as stats.mydomain.com this method not working!

I do the method you mentioned about but i get the wrong path

in the Redirection Box i enter this value : states.maadnews.com

in live site i got this address : mydomain.com/CMSPages/states.mydomain.com

i am using CMS v6

User avatar
Member
Member
caspian_softdev-yahoo - 10/22/2013 6:31:44 AM
   
RE:Subdomain
I think it is required to modify some code in web project but i don't know how

User avatar
Member
Member
kentico_sandroj - 10/23/2013 12:56:49 PM
   
RE:Subdomain
Hello,

Thank you for the additional clarification.

Since you are running the project on v6, please repost this question in the v6 section. We will provide our suggestions there once the post has been made. It should not be required to make any code changes.

Thank you!

Best Regards,
Sandro

User avatar
Member
Member
caspian_softdev-yahoo - 10/26/2013 9:50:40 AM
   
RE:Subdomain
new post placed here http://devnet.kentico.com/Forums/f55/t41321/Subdomain.aspx