Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Subdomain View modes: 
User avatar
Member
Member
caspian_softdev-yahoo - 10/25/2013 9:58:32 AM
   
Subdomain
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?

say i have a content tree like these :
---------------------------------------------------------
page subdomain url
---------------------------------------------------------
+root
+home
-states -----> states.mydomain.com
+ city1 --> city1.mydomain.com
+ city2 --> city2.mydomain.com


users of site must allways access to these section by their corresponding subdomain url instead of their normal address(mydomain.com/states.aspx).

i do the following methods :

i have domain alias stats.mydomain.com for mydomain.com

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

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

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

best regards

User avatar
Member
Member
kentico_sandroj - 10/29/2013 10:05:07 AM
   
RE:Subdomain
Hello,

Thank you for re-posting this in the appropriate section, it will help others facing this issue. I believe that in your case, both for the URL Redirection and the Redirection Web part, the issue is likely in the URL format. Have you tried including the protocol in the URL?

http://states.maadnews.com

It may be more appropriate to use the Random Redirection Web part since the Menu Redirection only works when you click on the navigation. With the Redirection Web part, it does not matter how the user got to the page.

Please let me know if adding the protocol works or if an example would be helpful.

Best Regards,
Sandro

User avatar
Member
Member
caspian_softdev-yahoo - 11/10/2013 2:28:53 AM
   
RE:Subdomain
Hi

by adding protocols nothing chage.
i think by redirecting a url to the url like subdomain url is , server looking for that sub domain and kentico URLRewriter come out of action.

User avatar
Member
Member
kentico_sandroj - 11/14/2013 2:53:21 PM
   
RE:Subdomain
Hello,

The URLRewriter should not have any effect on this functionality. If you have added the domain alias states.maadnews.com to your main domain and set the default alias path to the page /states.aspx, what happens when you manually type in states.maadnews.com? The expected functionality is to see the /states.aspx page but the URL should be states.maadnews.com.

What are the settings under Site Manager > Sites > [edit]YourSite > Domain aliases > [edit]Alias?

Please see the context help page for more information about these settings: ~/CMSHelp/index.html?edit_and_new_alias.htm

Once I know how the alias is configured I will attempt to reproduce the issue again.

Best Regards,
Sandro

User avatar
Member
Member
caspian_softdev-yahoo - 2/25/2014 4:07:40 AM
   
RE:Subdomain
HI

I do the same as you mentioned but not working!

Domain aliases : states.maadnews.com
alias path : /states.aspx

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/3/2014 3:28:46 AM
   
RE:Subdomain
Hi,

The setting for a document, "URL redirection" is working fine for me when I use a subdomain. What is the response when sing Fiddler, Firebug or other development tools? This looks more like IIS or server side setting issue.
Also, I would recommend setting the default starting path to the domain alias to other document to avoid a loop. So, the structure should look like this:

-root
---states (just a placeholder, set the Redirection to the subdomain)
------states landing page (this page should be the real "states" page and this one should be used as the domain alias starting path)

Best regards,
Juraj Ondrus

User avatar
Member
Member
caspian_softdev-yahoo - 3/11/2014 4:11:56 AM
   
RE:Subdomain
HI
Thanks for your reply

here i explain what i do exactly
SiteManager->Edit Site ->Domain Aliases->New Domain Alias

Domain Alias : state.maadnews.com
Default alias path: /States/States (real page)
Redirect URL : ""

<<save changes>>


now for placeholder page (states)
Properties->Menu->URL redirection: state.maadnews.com

<<save changes>>

after doing these settings nothing happens.

Note that i don't have a sub domain named "http://state.maadnews.com"

where is my mistake?
and if this is server side or iis setting issue how i can solve it

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/13/2014 3:22:21 AM
   
RE:Subdomain
Hi,

what does the FireBug or other development tools say? Are there correct redirections made?
Also, in the URL redirection property of the placeholder page, try to adding full URL including the HTTP protocol.

Best regards,
Juraj Ondrus

User avatar
Member
Member
caspian_softdev-yahoo - 3/16/2014 10:42:05 AM
   
RE:Subdomain
HI
Thanks for your reply

development tools like firebug display nothing.
also firefox standard dev tool console only show GET information that don't have meaningfull information(only show http header fields)

when i directly type http://states.maadnews.com in address bar i got "Server Not Found" error.

when i type http://maadnews.com/states.aspx , browser redirect to states.maadnews.com but again i see the "Server not found" error page.

also i include the HTTP protocol in URL Redirection(http://states.maadnes.com).

User avatar
Member
Member
caspian_softdev-yahoo - 3/16/2014 10:57:43 AM
   
RE:Subdomain
by enabling FireBug BFCache Responses I got this message

http://maadnews.com---------------------301 Moved Permanently

GET http://states.maadnews.com-----Aborted

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/17/2014 3:12:51 AM
   
RE:Subdomain
This is very strange. So, the IIS and DNS settings are correctly set?
I would try also using the Fiddler tool to see more details about the requests.
Have you checked this with your server administrator too?

Best regards,
Juraj Ondrus

User avatar
Member
Member
caspian_softdev-yahoo - 3/17/2014 8:53:08 AM
   
RE:Subdomain
HI jurajo
Based on intodns.com tool report thereis no problem ith DNS setting.
in the fiddler :
by composing for http://states.maadnews.com fiddler report is :

[Fiddler] DNS Lookup for "states.maadnews.com" failed. No such host is known

i think the above error say that we don't have such a subdomain