Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 10 of 10
  1. #1
    dvdrip's Avatar
    Join Date
    Jul 2002
    Location
    Athens Greece
    Posts
    2,713
    DNF$
    14,482
    Bank
    0
    Total DNF$
    14,482
    Donate  

    Multiple domains redirected to PPC

    I have about 30 domains hosted all together.
    I use php to parse the URL and redirect the user to the appropiate URL.
    (e.g. sedo.co.uk/parking/mydomain.com)

    The problem is with 404 requests.
    I use htaccess:

    ErrorDocument 404 /index.php

    but it doesn't work.

    Anyone knows why or has a betted idea on how to do this?
    www.bluepixel.gr I like .info!
    Now accepting .gr domain registrations from any foreign company or individual. Contact me for details.

  2. #2
    DNF Regular
    Frontline's Avatar
    Join Date
    Nov 2002
    Posts
    713
    DNF$
    567
    Bank
    0
    Total DNF$
    567
    Donate  

    Re: Multiple domains redirected to PPC

    Maybe the server isn't going to the right dir with just a /index.php location and looking for that file in the incorrect folders that visitors are trying to access. I would suggest just typing out the full url and seeing if that solves everything. I use the following for my htaccess and it works fine:

    ErrorDocument 400 http://www.sedo.co.uk/parking/xxx
    ErrorDocument 403 http://www.sedo.co.uk/parking/xxx
    ErrorDocument 404 http://www.sedo.co.uk/parking/xxx
    ErrorDocument 500 http://www.sedo.co.uk/parking/xxx
    ErrorDocument 501 http://www.sedo.co.uk/parking/xxx
    ErrorDocument 503 http://www.sedo.co.uk/parking/xxx
    Need a Sedo PRO Endorsement Code? PM ME

  3. #3
    dvdrip's Avatar
    Join Date
    Jul 2002
    Location
    Athens Greece
    Posts
    2,713
    DNF$
    14,482
    Bank
    0
    Total DNF$
    14,482
    Donate  

    Re: Multiple domains redirected to PPC

    The whole url works but I have many domains hosted all together.
    How do I make them go to the correct sedo page?
    I need xxx to be different in each case.
    www.bluepixel.gr I like .info!
    Now accepting .gr domain registrations from any foreign company or individual. Contact me for details.

  4. #4
    DNF Member
    Nameable's Avatar
    Join Date
    Jan 2004
    Location
    MASS
    Posts
    483
    DNF$
    51,590
    Bank
    0
    Total DNF$
    51,590
    Donate  

    Lightbulb Re: Multiple domains redirected to PPC


  5. #5
    Platinum Lifetime Member
    hotdog_pk's Avatar
    Join Date
    Mar 2004
    Location
    UK
    Posts
    530
    DNF$
    414
    Bank
    0
    Total DNF$
    414
    Donate  

    Re: Multiple domains redirected to PPC

    i prefer to have one page, index.php in the site root.

    when forwarding the url via the registrar you can pass a few variables.

    for example: http://domain.com/?r=dnforum.com&s=search
    This method works with frames so you can keep the address bar intact.

    now. inside the index.php place the following:
    Quote Originally Posted by index.php - start
    <?php
    $domain = $_REQUEST['r'];
    $search = $_REQUEST['s'];
    ?>
    .... This gets the variables (after the "?" in the forward URL)

    now you can play around with the variables...
    Quote Originally Posted by CODE 2
    <?php
    echo $domain; //prints the domain, for example dnforum.com

    echo "www." . $domain; //Prints the domain with 'www.', for example www.dnforum.com

    $q = "SELECT * FROM table WHERE description LIKE %'$search'%";
    $sql = mysql_query($q);
    // Just the start of a query to search a database, of say, affiliates
    // Im in college at the moment and dont have time to do anything else

    ?>
    hope this helps, it works.
    i was going to write a full script on this but stopped because i have no longer got any time(I was going to add a lot more features than explained above). i started the script from another forum and lots others wanted to be able to keep the url in the address bar like ultsearch, this script allows you to do this without your own nameservers.

  6. #6
    dvdrip's Avatar
    Join Date
    Jul 2002
    Location
    Athens Greece
    Posts
    2,713
    DNF$
    14,482
    Bank
    0
    Total DNF$
    14,482
    Donate  

    Re: Multiple domains redirected to PPC

    This is fine but I need to redirect all wrong requests(404 etc.) to this index.php.
    I need www.mydomain.xxx/asdfdsfsdfsdf/sdfsdfsd/shit.gif to redirect to index.php and I can't do that.
    Name admin do this very nice.
    www.bluepixel.gr I like .info!
    Now accepting .gr domain registrations from any foreign company or individual. Contact me for details.

  7. #7
    Platinum Lifetime Member
    cyphix's Avatar
    Join Date
    Jan 2003
    Location
    Australia
    Posts
    3,603
    DNF$
    1,774
    Bank
    0
    Total DNF$
    1,774
    Donate  

    Re: Multiple domains redirected to PPC

    Hey dvdrip... try this in all your .htaccess files.

    Code:
    ErrorDocument 404 http://domain.com/index.html
    
    Redirect /index.html http://www.sedo.us/parking/domain.com
    Let me know if that works.
    538k Lyrics Database Available - Only $49 - Check Here

  8. #8
    dvdrip's Avatar
    Join Date
    Jul 2002
    Location
    Athens Greece
    Posts
    2,713
    DNF$
    14,482
    Bank
    0
    Total DNF$
    14,482
    Donate  

    Re: Multiple domains redirected to PPC

    cyphix this works if you have one domain.

    I use:

    ErrorDocument 404 /index.html

    and it won't work.
    www.bluepixel.gr I like .info!
    Now accepting .gr domain registrations from any foreign company or individual. Contact me for details.

  9. #9
    Platinum Lifetime Member
    cyphix's Avatar
    Join Date
    Jan 2003
    Location
    Australia
    Posts
    3,603
    DNF$
    1,774
    Bank
    0
    Total DNF$
    1,774
    Donate  

    Re: Multiple domains redirected to PPC

    Don't u have all your domains setup seperately? Just use that in all their root .htaccess
    538k Lyrics Database Available - Only $49 - Check Here

  10. #10
    dvdrip's Avatar
    Join Date
    Jul 2002
    Location
    Athens Greece
    Posts
    2,713
    DNF$
    14,482
    Bank
    0
    Total DNF$
    14,482
    Donate  

    Re: Multiple domains redirected to PPC

    No, I have them all together. I said that in my first post.
    I don't want them hosted seperately cause it takes too much space (5MB instead of 1000x5MB), it is too much work(1000 .htaccess files!!!) etc.
    www.bluepixel.gr I like .info!
    Now accepting .gr domain registrations from any foreign company or individual. Contact me for details.

Similar Threads

  1. 123 High Quality .BIZ Domains - NEW SALE Part 5 Incl. TravelStore.biz
    By Duke in forum Domains for Sale (Domain Sales) - Fixed Prices Above $100
    Replies: 0
    Last Post: 03-23-2004, 11:20 AM
  2. ON SALE - 89 Shopping & Retail Domains in Multiple Extensions!
    By Duke in forum Domains for Sale (Domain Sales) - Fixed Prices Above $100
    Replies: 1
    Last Post: 02-02-2004, 06:46 AM
  3. WHOLESALE List of Sports & Fitness Domains
    By Duke in forum Domains for Sale (Domain Sales) - Fixed Prices Above $100
    Replies: 0
    Last Post: 09-02-2003, 03:37 PM
  4. The .org whois saga and why EPP may save the net
    By izopod in forum Domain Name News
    Replies: 0
    Last Post: 05-27-2003, 12:18 PM
  5. 70 Domains - ALL Extensions - REDUCED!!!
    By radioz in forum Domains for Sale (Domain Sales) - Fixed Prices Above $100
    Replies: 4
    Last Post: 05-26-2003, 11:59 PM

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
  •  

Domain name forum recommended by Domaining.com