+ Reply to Thread
Results 1 to 10 of 10

 

Thread: Parked domains coding help

  1. #1
    Registered User

    Status
    Offline
    Join Date
    Jul 2004
    Posts
    170
    Thanks
    4
    Thanked 10 Times in 4 Posts


    I need help with come coding for parked domains, but can't find anyone who has a clue how to do what we want.

    I have several hundred parked generic domain names, they are all pointing to one holding page using Apache ServerAlias in httpd.conf (much quicker than setting up a site for each).

    I want to put those names to better use by showing results from Mirago (or Google?) that are linked to the generic word in the domain name.

    I have found a CGI script from Mirago that can produce affiliate based search results based on a generic word query (i.e. if you type in ww.mysite.com/cgi/miragoscript.pl?query=food it will produce an entire page of food linked results).

    So far so good, but we haven't been able to work out how to grab the domain name, strip out the "www" and the ".com" bit to be left with just the generic word, and then add that as a query to fire the Mirago CGI script and produce the search results page.

    If you can do this, you probably think it's easy. If you can't, you probably stopped reading several minutes ago....

    If you know how to do this and can show proof of concept, please pm me as you may have a job waiting.

    Ta,

    Larry.
    Sell your domain names without commission! www.nameseller.co.uk/

  2. #2
    Shane's Avatar
    Moderator

    Status
    Offline
    Join Date
    Aug 2003
    Location
    sheffield - Worldwide Skiver
    Posts
    3,311
    Thanks
    12
    Thanked 70 Times in 34 Posts
    Hi Rocky

    I'll ask my programmer in the morning when he comes in and drop you a pm ..

    should be something he can do on it.. he likes a challenge

  3. #3
    aka Antony

    Status
    Offline
    Join Date
    Mar 2005
    Location
    Bristol
    Posts
    531
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if the page is php then a combiantion of PHP_SELF to grab the full url of the page combined with substr & strpos should allow you to extract the main part of the domain name

  4. #4
    Registered User

    Status
    Offline
    Join Date
    Oct 2005
    Location
    Norfolk
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here is one solution for PHP:

    PHP Code:
    <?php

    //get server name
    $name $_SERVER['SERVER_NAME'];

    //strip out the pieces either side of the full stops into an array
    $pieces explode("."$name);

    //concat the first part with the name in it to the end of the URL and place in a variable
    $link "http://www.mysite.com/cgi/miragoscript.pl?query="$pieces[0];

    //auto redirect server side to the new url with query
    header("Location: $link");

    ?>
    I have PM'd this to you as well but thought I would post it here for others to use.
    Last edited by shopguru; 02-11-05 at 10:32 PM.
    The Guru
    ===========================
    Just stop moanin' and get on with it!
    ===========================
    http://www.shopguru.co.uk

  5. #5
    Registered User

    Status
    Offline
    Join Date
    Jul 2004
    Posts
    170
    Thanks
    4
    Thanked 10 Times in 4 Posts
    Thanks for your help so far, but I must be the only server operator not using PHP on planet Earth.

    It could have something to do with the amount of stories like this one I have seen recently....

    http://www.theregister.co.uk/2005/11...security_vuln/

    Has anyone got a non PHP hack?
    Sell your domain names without commission! www.nameseller.co.uk/

  6. #6
    aka Antony

    Status
    Offline
    Join Date
    Mar 2005
    Location
    Bristol
    Posts
    531
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So do you have ASP?
    Im pretty sure theres an ASP version of shopguru's approach

  7. #7
    Registered User

    Status
    Offline
    Join Date
    Oct 2005
    Location
    Norfolk
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rocky - It could have something to do with the amount of stories like this one I have seen recently....

    http://www.theregister.co.uk/2005/11...security_vuln/
    If you're that paranoid I hope you're not using Windows

    Okay you can do this in a .htaccess file:

    #Turn on mod_rewrite
    RewriteEngine on


    #Grab the server name
    %{SERVER_NAME}$
    (need to perform regular expression here to lose .com or .co.uk)

    Then use RewriteRule to redirect to http://www.mysite.com/cgi/miragoscript.pl?query={SERVER_NAME}

    This isn't the full code as I don't know it off the top of my head but it should point you in the right direction. Good Luck.
    The Guru
    ===========================
    Just stop moanin' and get on with it!
    ===========================
    http://www.shopguru.co.uk

  8. #8
    Affiliate

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Bristol
    Posts
    2,200
    Thanks
    52
    Thanked 36 Times in 27 Posts
    Can someone point me to a PHP script for mirago so I can use Mirago searches as a backfill on my site.

  9. #9
    Ste
    It's a hard life .....

    Status
    Offline
    Join Date
    Apr 2004
    Location
    Lancashire
    Posts
    621
    Thanks
    0
    Thanked 1 Time in 1 Post
    Quote Originally Posted by purple
    Can someone point me to a PHP script for mirago so I can use Mirago searches as a backfill on my site.
    Purple, in the Mirago login, they have there own scripts you can use somewhere,
    B-Link - UK Link Exchange Directory
    PRBox - Free UK Press Releases - Submit Yours Free

  10. #10
    Affiliate

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Bristol
    Posts
    2,200
    Thanks
    52
    Thanked 36 Times in 27 Posts
    Quote Originally Posted by Ste
    Purple, in the Mirago login, they have there own scripts you can use somewhere,
    I will look later can someone explain in lame man terms how I get the backfill to work using php code ( Last time I looked, it did not seem easy on the mirago site)

+ Reply to Thread


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 8
    Last Post: 01-06-05, 01:56 AM
  2. Few domains to clear out
    By aus in forum Domains & Websites For Sale
    Replies: 0
    Last Post: 26-05-05, 05:39 AM
  3. .co.uk Loan / Casino / Travel / Console domains for sale.
    By paullas in forum Web Hosting & Security
    Replies: 0
    Last Post: 13-04-05, 12:47 PM
  4. anyone got any spare domains ?
    By leefaefife in forum Affiliate Marketing Lounge
    Replies: 9
    Last Post: 04-11-03, 08:07 PM
  5. sub domains help !
    By tinycat in forum TradeDoubler
    Replies: 2
    Last Post: 06-03-03, 07:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2