Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sub folders, sub sites, and CName redirection..

Status
Not open for further replies.

mmorancbt

IS-IT--Management
Nov 11, 2002
367
US
This is similar to the A record redirection question below but a little more involved. I apologize ahead of time for the length of this post and hope it is somewhat clear.
==============================

I have an web application that provides my client’s marketing partners to build customizable shopping carts tied to promotion codes. Basically, a marketing partner will have anywhere from 1 to 100 promotion codes.

They can then build a cart profile that determines which products, their price, the order that they appear, and any discounts. The cart profile is then applied to 1 or more promotion codes.

Once the promotion code has a cart profile activated is must become available on the web. There are three ways this will occur.

1) A sub-folder on our domain in the form.. “ourshophost.ourdomainname.com/promocode”
2) A CName from the partner in the form “promocode.partnerdomain.com” that they point at our server.
3) The same CName in two but a folder promotion code at the end of their domain as in “cnamehost.partnerdomain.com/promocode” – for partners who do not want several host names pointing at our server.

Based on the promocode host defined or the folder on either their Cname’d domain or our domain, we will determine which shop profile to use and display the necessary items.

All the program logic will be located on a shared virtual folder system.

What is the best way for me to perform this? The application files will not be replicated to partners folder but a default application file “default.asp” could be. It would simply include the necessary business logic file.

However, I want this to be as simple to manage and maintain as possible.

Also, the domain and folder first used when a visitor hits the site, must be maintained. Meaning, if they come to the site from “ourshophost.ourdomainame.com/promocode” – that is the domain subfolder that they stay on the entire time of their visit. If the come into “promocode.partnerdomain.com” – they must stay on that site.

If you know of any articles I can look at that discuss this type of setup, please let me know.

Thanks,

Matthew Moran
Read my career blog at: Career Blog: Todo esta bien.. Todo esta divertido (it's all good, it's all fun)
 
Well you can have that setup or you can have
However, I want this to be as simple to manage and maintain as possible.

Both will not be possible.

you definitely cannot control this
) A CName from the partner in the form “promocode.partnerdomain.com” that they point at our server.
unless you manage the DNS server for partnerdomain.com

From the description, what you are looking for is a way of managing affiliate products and content and should be easy enough to manage with a shopping cart and some mods to the database.


Chris.

Indifference will be the downfall of mankind, but who cares?
Woo Hoo! the cobblers kids get new shoes.
People Counting Systems

So long, and thanks for all the fish.
 
ChrisHirst,

I can pretty easily determine if the CNAME site is a partner site and determine their specific customizations.

I am trying to figure out the optimal method to make my code universally available to all the parter's sub-sites. However, I think I have it figured out with a sub-folder default.asp that includes the necessary logic. The logic is shared and sub-folder in the URL let's me know who the partner is.

I'll report back on how I finalize this but I believe I'll have a solution by tonight that is very easy to maintain and manage.

Thanks,

Matthew Moran
Read my career blog at: Career Blog: Todo esta bien.. Todo esta divertido (it's all good, it's all fun)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top