Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Friendly URL help needed - Static Portal Alias?Friendly URL help needed - Static Portal Alias?
Previous
 
Next
New Post
1/26/2008 2:30 PM
 

I was wondering if there was a way to take a request to a specific file say: http://domain.com/DesktopModules/Example/file.htm and regardless of which portal alias was used say: http://anotherdomain.com/DesktopModules/Example/file.htm make sure that the server processed the request as http://domain.com/DesktopModules/Example/file.htm. Basically, I need to specify a static domain name when a specific file is requested regardless of what hostname is used.

I hope this makes sense... if not please let me know and I will try to explain further.

 

Update: this is close but it is not excluding the domain I am redirecting to, then it redirects forever.

.*[^(localhost)].*/DesktopModules/IWebCF/CoreService.svc http://localhost/DesktopModules/IWebCF/CoreService.svc  

So I am assuming this is not the correct syntax to exclude localhost but allow anyother domain?            .*[^(localhost)].*                 ?

I am certainly no regex master ;)

...but then again :   [^(localhost)]/DesktopModules/IWebCF/CoreService.svc   this seems to work.

Sorry for thinking out loud on the forum, and hope this helps others!

P.S. Keep an eye on the IWeb project we are moving right along and are doing some really neat stuff! http://iweb.adefwebserver.com/

 
New Post
1/27/2008 9:21 AM
 

Assuming your example works (I haven't tested it myself), wouldn't you be trying to do this instead?  (Unless I misunderstood your question.)

(.*)(localhost)(.*)/DesktopModules/IWebCF/CoreService.svc 
... TO .... 
$1anotherdomain.com$2/DesktopModules/IWebCF/CoreService.svc

By the way, that iWeb Module is REALLY cool!  I cannot wait to learn/see more!


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Friendly URL help needed - Static Portal Alias?Friendly URL help needed - Static Portal Alias?


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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out