Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- "Dynamic" redirecting ... stumped!
January 28, 2010, 5:38 am
rate this thread
Hello everyone. Here is the challenge I am working on:
I want to build a system that would allow you to control the redirect
location of one domain, via a front-end interface of another domain,
I own www.fakedomain.com, which is going to point to different places
all the time.
I want to build an app on www.maindomain.com that would have an
interface that allows you to change where www.fakedomain.com points.
I want to also dynamically be able to dictate that www.maindomain.com/rawr
goes somewhere different.
It seems to me, that there would be a way to set the DNS in
fakedomain's registrar to maindomain.com's server, and then
maindomain.com would read the URL, checks it against a database, and
redirects it accordingly. I guess the struggle I can't figure out is
the connection between pointing a DNS at maindomain and allowing it to
Hope that wasn't too confusing. Any help is much appreciated!
Re: "Dynamic" redirecting ... stumped!
On Thu, 28 Jan 2010 06:11:35 -0500, Jerry Stuckle
However, changing the DNS is totally unnecessary. Use htaccess to
point all requests on fakedomain to a single script which evaluates
the request by directory or page. The script would then use
file_get_contents() to a script on the mainserver, passing any
required values via a query string. Mainserver evaluates the query
string and echoes the redirection. Fakeserver script then uses
header() to 301 or 302 to the proper page.
This has everything to do with redirection and nothing to do with DNS.
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum