Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Call Domain?

  1. #1
    New Coder
    Join Date
    Jul 2005
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Call Domain?

    Hi. Is there a PHP script to call the domain name you are visiting?

    Example; if you park your domain name at Sedo.com, then it will show like this: www.atboobs.com (not porn :P)

    Notice how at the top it says ATBOOBS.COM - How do they do that?

    The next issue is that I would be doing this within a frame, so it would need to look at the domain in the parent frame, not the current one (e.g. a user could own www.blahblahblah.com and put an iframe to my page and it would say BLAHBLAHBLAH.COM not mypage.com [the source of the frame])

  • #2
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,092
    Thanks
    2
    Thanked 23 Times in 23 Posts
    To redirect at the domain level like that, you need to use .htaccess.

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} (www\.)?sedo\.com$ [NC]
    RewriteRule ^(.*)$ http://www.atboobs.com/$1 [R=301,L]
    I can't help you with your frame question. Sorry.

    p.s. - You should post questions on a different topic in a new thread.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!


  •  

    Posting Permissions

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