Ray Dixon Registered Users
 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 |
|
|
|
|
georgelew Gold Membership
 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 McCulloch Administrators
 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 Dixon Registered Users
 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 Dumlupinar Registered Users
 Ventrian Master Posts:483

 |
|
Ray Dixon Registered Users
 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 McCulloch Administrators
 Ventrian Master Posts:21062


 |
| 1/11/2010 1:36 PM |
|
| That seems like a good way to do it Ray. |
|
Scott McCulloch Site Administrator |
|
|
ROBAX Gold Membership
 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 Webster Gold Membership
 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 Dixon Registered Users
 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. |
|
|
|
|
AJ Gold Membership
 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? |
|
|
|
|
AJ Gold Membership
 Ventrian Master Posts:542


 |
| 5/27/2010 10:08 PM |
|
| Does anyone know with my question above? |
|
|
|
|
georgelew Gold Membership
 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? |
|
|