Register   Login
     
  Latest Posts  
RE: Sexy Lightbox
by gbrown on 5/16/2012 2:11 PM
RE: Listing Items in column on Main module
by tunersdream on 5/16/2012 11:39 AM
RE: Can't delete pictures
by smcculloch on 5/16/2012 8:17 AM
RE: slideshow from module latest
by smcculloch on 5/16/2012 8:15 AM
RE: Forum Rules
by smcculloch on 5/16/2012 8:15 AM
RE: how to disable email notifications for a new user registration on dnn5
by smcculloch on 5/16/2012 8:14 AM
RE: Sexy Lightbox
by smcculloch on 5/16/2012 6:44 AM
how to disable email notifications for a new user registration on dnn5
by soniap on 5/16/2012 5:39 AM
Sexy Lightbox
by gdavey on 5/16/2012 3:57 AM
RE: PA module email a LOT of people since DNN6 upgrade
by StevenT on 5/15/2012 8:30 PM
  Forums  
Subject: Redirect www.domain.com to domain.com
Prev Next
You are not authorized to post a reply.

Author Messages
Ray DixonUser is Offline
Registered Users
Ventrian Master
Ventrian Master
Posts:401


12/30/2009 6:32 PM  

I would like to set up a 301 redirect for everything requested at www.domain.com/whatever to domain.com/whatever. Is this possible out of the box with DotNetNuke 5? If so, how?

If not, I'm looking for something that is free or very cheap (this is for a non-profit) and will play well with News Articles and Property Agent. I am considering iFinity Friendly Url Provider but I'd like to hear from anyone else who has already tried this, successfully or otherwise.

Thanks,
Ray

georgelewUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:573


12/30/2009 11:17 PM  
Yes, ifinity is definitely is good option. If you only need simple url optimization, the free version of iFinity Friendly Url Provider is enough for doing the trick.

Thanks,

George

Looking for Invite Friends Module?
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:21062


1/02/2010 4:59 AM  
I usually do this in IIS - but ifinity should do this (I think)

Scott McCulloch
Site Administrator
Ray DixonUser is Offline
Registered Users
Ventrian Master
Ventrian Master
Posts:401


1/02/2010 7:55 AM  

Doing it in IIS isn't an option for us because we use shared hosting. I ended up adding some code to the Page_Load event handler in the default.aspx.vb code behind file and it's working well.

Thanks for the feedback about Friendly URL Provider!

Ismet DumlupinarUser is Offline
Registered Users
Ventrian Master
Ventrian Master
Posts:483

1/10/2010 6:17 AM  
Ray would you mind sharing a tutorial for this scenario? I have a few sites running under shared hosting as well.

DNN Hosting Suggestions MCP/MCDST/MCT
Daily DotNetNuke Tips and Tutorials
Install DotNetNuke to Godaddy Root

DotNetNuke Türkçe
Ray DixonUser is Offline
Registered Users
Ventrian Master
Ventrian Master
Posts:401


1/11/2010 10:48 AM  

I added this code to the Page_Load event handler in the default.aspx.vb file:

 

I'm sure there is a more elegant way to do this, but it's working for me so far.

Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:21062


1/11/2010 1:36 PM  
That seems like a good way to do it Ray.

Scott McCulloch
Site Administrator
ROBAXUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:1101


4/19/2010 2:59 PM  
That looks great.
Is there any way to rewrite that to work the other way around? I'd like to go from non-www to www, but I guess there are possibly problems when using other non-www subdomains?
Regards,
Rob
Steven WebsterUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:704


4/20/2010 9:14 AM  
Good solution Ray. I think for a single portal on a DNN instance it works...but as ROBAX pointed out it might wreak havoc with multi portal DNN instances and other domains, vanity urls, etc.

I supposed you might be able to module-ify that as well...place it on the homepage and interrogate the url and redirect if necessary.

iFinity can handle this sort of thing out of the box and does it well.

Steven Webster
dnnOsphere.com, An Independent Community for DotNetNuke Users
Ray DixonUser is Offline
Registered Users
Ventrian Master
Ventrian Master
Posts:401


5/05/2010 1:29 PM  

Yeah, my hack (and it is most certainly a hack) was just for our single portal site that moved from a php based host to DNN. It really was just to make the transition a little easier for people who clicked on search results that still pointed to the old site.

AJUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:542


5/15/2010 10:41 PM  
I am in the process of setting up a new area for my website, and am looking at ways to do this.

Basically there will be different membership plans, and with the premium plan, we will purchase them their own unique URL, like www.XXXXHousingAgency.com and when you type that URL into the browser it will re-direct to that housing agencies page, developed by the PA.

My question, would Infinity URL re-writer work in this situation, and create a rule, that says, Any Request made from XXXXX URL will auto-redirect to their home page, which is their agency page.

Or for example, If we have restaurants, we will allow restaurants to have the option to get a URL, and when you type in that URL it will take them to their page, within my website.

I know I will have to perform a re-direct through godaddy hosting, to my URL of JapanBases.com but from there, once the URL comes in, I am hoping to find a way for it to distinguish its URL path/header, and see it was intending to find XXX page, which Infinity would re-direct to.

Does anyone have any ideas, for me going about this?
AJUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:542


5/27/2010 10:08 PM  
Does anyone know with my question above?
georgelewUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:573


5/28/2010 12:16 AM  
If you're doing it at hosting server side, there's nothing to do in DNN. All you need to use Domain DNS CP, you can use 301 redirect or URL cloaking to show the purchased domain name instead of the PA url.

Alternatively, I think you can achieve that by using pageblaster pro.

Thanks,

George

Looking for Invite Friends Module?
You are not authorized to post a reply.
Forums > General > DotNetNuke Questions > Redirect www.domain.com to domain.com



ActiveForums 3.7