Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesdnndev.me redirects to live URL with en-gb in developmentdnndev.me redirects to live URL with en-gb in development
Previous
 
Next
New Post
12/5/2014 11:59 PM
 

I have a live site running on 7.3.  I have changed the default language to en-gb and disabled en-US.  The site works fine on "http://<livesite>". Note it does not use or go to "http://<livesite>/en-gb"  The site also has the alias dnndev.me (As originated from my development environment).  I copied the site and DB back to my development environment to change a module - which is fairly routine.  The problem is that now every time I try to load the development copy into a browser using http://dnndev.me it immediately redirects to "http://<livesite>/en-gb".  I cannot get it to load the development site.  I have checked the DB and remove all references to the <livesite> alias.  But it still redirects to "http://<livesite>/en-gb". How do I stop this behaviour so I can test my code?


Thanks

Nick

 
New Post
12/6/2014 5:45 AM
 
Nick,
dnndev.me is bound to 127.0.0.1, which is the local machine, where the browser resides.
It is intended for use on you local machine for development.
Every site needs a primary alias per language, when being live.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/6/2014 7:50 AM
 

Hi Sebastian,

Thanks for trying to help.

I want the site run on my local development machine at 127.0.0.1 (dnndev.me). The problem is that having copied the site from live to development, ensuring the dnndev.me alias is present, when I navigate to http://dnndev.me in my local development machine browser, it immediately redirects to http://<livesite>/en-gb/ , which is in any case invalid (404) as there is only one language enabled, en-gb.  There is a setting "Enable Language Parameter in URLs?" under language management, but when I uncheck this, nothing changes and the next time I return to the form - the box is checked again anyway. Under normal circumstances the site just runs at http://<livesite> (i.e. no /en-gb/ in the URL.  

You say each language has to have a primary alias - how is that determined/set?  I have just two aliases, <livesite> and dnndev.me.  I can't edit the <livesite> alias because under normal circumstance that is the alias in use. And I can't change it on my development machine, because it immediately redirects to the live site.  I seem to be in a catch-22.

I am sure I am missing something, but I haven't had this problem before when developing modules, although this is the first under 7.3.

At the moment I am trying re-installing a blank version of 7.3 just to allow me to continue working on the module - not ideal as I really want to test it in the context of the real site and need to be able to pull back a copy of the live site for full testing.

Nick

 

 
New Post
12/6/2014 10:06 AM
 
Nick, if you enabled redirect, DNN will automatically use the primary or first alias for a language.
You may disable it inside the database, table PortalSettings, SettingsName PortalAliasMapping where you may enter "CANONICALURL" instead of "REDIRECT"

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesdnndev.me redirects to live URL with en-gb in developmentdnndev.me redirects to live URL with en-gb in development


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out