uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Tech Support
       Support Policy
       Knowledge Base
       Reference Sites
       Software Piracy
       Legal Notices
       Privacy Policy
       Reseller Info
       Contact Us
       Site Map
multiple domain name websites

Knowledge Base Lobby : uShop Support Conference : Future Features WishList
Mar-24-18 08:04 AM EST
Original Message
multiple domain name websites
Author John Benton on 06-26-2001 at 16:47 (EST)
Many of the websites that I manage have multiple domain names. Unfortunately this makes using the page validation feature of uShop somewhat problematic. I'd like to see a new feature that allows you to enter a list of valid URLs which may access the script. That way if a visitor enters the website from either its .com or .net domain name, they can still make purchases.

Right now I'm either forced to turn the page validation off, or trick visitors into entering the website through the one valid domain name.


Table Of Contents
  Re: multiple domain name websites Joseph Pishgar, 2001-06-29 10:32:34 (1)
  RE: multiple domain name websites Bill Weiner, 2001-07-01 22:06:48 (2)

Messages In This Discussion
         1. Re: multiple domain name websites
        Author Joseph Pishgar on 06-29-2001 at 10:32 (EST)
The URL validation is in place due to licensing difficulties. Users would place single instances of the uShop software on multiple domains when only one of those domains was a registered for use with uShop.

We will look into your suggestion.

         2. RE: multiple domain name websites
        Author Bill Weiner on 07-01-2001 at 22:06 (EST)
For people who absolutely must allow different URLs to link to uShop's CGI script (such as those with domains that may or may not have the "www"... such as AND and who wish to keep the "Page Validation" turned "ON"... here is an example modification that can be made to the script:

STEP 1: Make a backup of your current script... just in case.

STEP 2: Open your script with any text editor such as WordPad.

STEP 3: Do a search on the following line (in order to get to the start of the subroutine that validates the referrer:

sub validate_referral_page

STEP 4: Locate the following two lines in that subroutine:

if ((!($referrer_string =~ /$expected_referrer/i)) XX
($referrer_string =~ /^file/i))

STEP 5: Replace those two lines with something like these 8 lines:

$domain2 = '';
$domain3 = '';
$domain4 = '';

if ((!($referrer_string =~ /$expected_referrer/i)) XX
(!($referrer_string =~ /$domain2/i)) XX
(!($referrer_string =~ /$domain3/i)) XX
(!($referrer_string =~ /$domain4/i)) XX
($referrer_string =~ /^file/i))

STEP 6: Save the file (as TEXT if your editor asks)... and try it out!

NOTE: Vertical bars (or pipe) characters do not show up correctly in this forum, so be sure to use vertical bars instead of the XX.

© 2003 Microburst Technologies, Inc.