It appears you have not yet registered with our community. To register please click here...

DNforum.com - Domain Sales, Domain Forum, Domain Appraisals
 
Register Now!
Register Now for FREE!
Our records show you have not yet registered to our forums. To sign up for your FREE account INSTANTLY fill out the form below!

Username: Password: Confirm Password: E-Mail: Confirm E-Mail:  
Birthday:       I agree to forum rules 

Go Back   DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars > Content Development > Website Development and Design Discussion
Start your Domain Reseller Business Today and Earn Money!
Reply
 
LinkBack Thread Tools Display Modes
Old 04-15-2004, 09:05 PM   #1 (permalink)
 
Last Online: Today 05:10 PM
iTrader: (7)
Join Date: Jul 2002
Posts: 2,360
DNF$: 12,775
Location: Athens Greece
Country:


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.
dvdrip is offline   Reply With Quote
Sponsored Links
Old 04-16-2004, 11:01 PM   #2 (permalink)
DNF Regular
 
Frontline's Avatar
 
Last Online: 06-13-2008 05:02 PM
iTrader: (8)
Join Date: Nov 2002
Posts: 713
DNF$: 152
Country:


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
Frontline is offline   Reply With Quote
Old 04-17-2004, 06:27 AM   #3 (permalink)
 
Last Online: Today 05:10 PM
iTrader: (7)
Join Date: Jul 2002
Posts: 2,360
DNF$: 12,775
Location: Athens Greece
Country:


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.
dvdrip is offline   Reply With Quote
Old 04-17-2004, 02:57 PM   #4 (permalink)
DNF Member
 
Nameable's Avatar
 
Last Online: 01-23-2008 08:15 PM
iTrader: (5)
Join Date: Jan 2004
Posts: 481
DNF$: 939
Location: MASS
Country:


Lightbulb Re: Multiple domains redirected to PPC

See my post here:

http://dnforum.com/showthread.php?t=47176&page=2
Nameable is offline   Reply With Quote
Old 04-19-2004, 04:46 AM   #5 (permalink)
Platinum Lifetime Member
 
hotdog_pk's Avatar
 
Last Online: 08-29-2008 06:02 AM
iTrader: (0)
Join Date: Mar 2004
Posts: 529
DNF$: 180
Location: UK


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.
__________________
Manchester Night Club Guide
hotdog_pk is offline   Reply With Quote
Old 04-19-2004, 06:20 AM   #6 (permalink)
 
Last Online: Today 05:10 PM
iTrader: (7)
Join Date: Jul 2002
Posts: 2,360
DNF$: 12,775
Location: Athens Greece
Country:


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.
dvdrip is offline   Reply With Quote
Old 04-19-2004, 07:47 AM   #7 (permalink)
Platinum Lifetime Member
 
cyphix's Avatar
 
Last Online: 08-18-2008 03:38 PM
iTrader: (26)
Join Date: Jan 2003
Posts: 3,559
DNF$: 1,325
Location: Australia
Country:


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
cyphix is offline   Reply With Quote
Old 04-19-2004, 07:53 AM   #8 (permalink)
 
Last Online: Today 05:10 PM
iTrader: (7)
Join Date: Jul 2002
Posts: 2,360
DNF$: 12,775
Location: Athens Greece
Country:


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.
dvdrip is offline   Reply With Quote
Old 04-19-2004, 08:30 AM   #9 (permalink)
Platinum Lifetime Member
 
cyphix's Avatar
 
Last Online: 08-18-2008 03:38 PM
iTrader: (26)
Join Date: Jan 2003
Posts: 3,559
DNF$: 1,325
Location: Australia
Country:


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
cyphix is offline   Reply With Quote
Old 04-19-2004, 08:43 AM   #10 (permalink)
 
Last Online: Today 05:10 PM
iTrader: (7)
Join Date: Jul 2002
Posts: 2,360
DNF$: 12,775
Location: Athens Greece
Country:


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.
dvdrip is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -4. The time now is 06:25 PM.
Copyright @2001-2008 DNForum.com

Learn Domains
Promote Domains
Research Domains
Buy Domains
Resell Domains
Park Domains
Sell Domains
Build Domains
Host Domains
Trademark Domains
Domain Domains
manage Domains
Appraise Domains