.htaccess code for domain masking?????

7 replies
Prob. not a prog. question but if your a prog., you got more brains than I do.

I want to forward/mask a domain. I know it's very simple on GoDaddy but I'm trying to do it in Bluehost.

How do I forward/mask one of my domains?

Some kind of code I enter in the .htaccess???

Does anyone know how to do this or can anyone lead me to a place that clearly demonstrates how?

Help appreciated- been trying to figure this out for hours. Called cust. support and they couldn't even tell me how to do it.
#code #domain #htaccess #masking
  • Profile picture of the author cakdesigns
    are you trying to forward a parked domain one of your site or are you trying to forward like yourdomain.com to a www yourdomain .com?
    {{ DiscussionBoard.errors[713549].message }}
  • Profile picture of the author awesometbn
    Originally Posted by callmestrip View Post

    How do I forward/mask one of my domains?

    Some kind of code I enter in the .htaccess???

    Does anyone know how to do this or can anyone lead me to a place that clearly demonstrates how?
    There might be other ways, but I just checked a few domains I have with Godaddy that I use for 301 redirect to an affiliate link, AND I have their domain masking feature enabled. The resulting web page is actually a frameset. So even if you find a domain registrar that allows domain masking, you are still going to wind up with a frameset on the redirected page.

    Code:
    Rex Swain's HTTP Viewer
    
    http://www.rexswain.com/httpview.html
    
    Parameters:
    URL = http://www.example.com/
    UAG = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
    AEN =
    REQ = GET ; VER = 1.1 ; FMT = AUTO
    Sending request:
    
    GET / HTTP/1.1
    Host: www.example.com
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
    Connection: close
    
    • Finding host IP address...
    • Host IP address = x.x.x.x
    • Finding TCP protocol...
    • Binding to local socket...
    • Connecting to host...
    • Sending request...
    • Waiting for response...
    Receiving Header:
    HTTP/1.1·200·OK(CR)(LF)
    Connection:·close(CR)(LF)
    Date:·Mon,·02·Feb·2009·21:43:01·GMT(CR)(LF)
    Server:·Microsoft-IIS/6.0(CR)(LF)
    X-Powered-By:·ASP.NET(CR)(LF)
    X-AspNet-Version:·2.0.50727(CR)(LF)
    Cache-Control:·private(CR)(LF)
    Content-Type:·text/html;·charset=utf-8(CR)(LF)
    Content-Length:·528(CR)(LF)
    (CR)(LF)
    End of Header (Length = 239)
    • Elapsed time so far: 0 seconds
    • Waiting for additional response until connection closes...
    Total bytes received = 767
    Elapsed time so far: 0 seconds
    Content (Length = 528):
    (CR)(LF)
    <!DOCTYPE·HTML·PUBLIC·"-//W3C//DTD·HTML·4.01//EN"(CR)(LF)
    ···"http://www.w3.org/TR/html4/strict.dtd">(CR)(LF)
    <html>(CR)(LF)
    (CR)(LF)
    <head>(CR)(LF)
    ··<title>Example Title</title>(CR)(LF)
    ··<META·name="description"·content="Example description"><META·name="keywords"·content="Example description">(CR)(LF)
    </head>(CR)(LF)
    <frameset·rows="100%,*"·border="0">(CR)(LF)
    ··<frame·src="http://example.hop.clickbank.net/"·frameborder="0"·/>(CR)(LF)
    ··<frame·frameborder="0"·noresize·/>(CR)(LF)
    </frameset>(CR)(LF)
    (CR)(LF)
    <!--·pageok·-->(CR)(LF)
    <!--·05·-->(CR)(LF)
    <!--·7.9-->(CR)(LF)
    </html>
    Done
    Total elapsed time: 0 seconds
    {{ DiscussionBoard.errors[714455].message }}
  • Profile picture of the author wayfarer
    .htaccess:
    Code:
    RewriteEngine On
    Redirect 301 / http://new-website-location.com
    Will forward all requests from one website to another
    Signature
    I build web things, server things. I help build the startup Veenome. | Remote Programming Jobs
    {{ DiscussionBoard.errors[715181].message }}
  • Profile picture of the author Dionysus
    Hello, I am also a BlueHost customer and this issue has been driving me nuts. I want to config .ntaccess for frame forwarding to hide the destination URL, but have not been able to find the right syntax. Were you able to find the code somewhere? Thanks, Ray
    {{ DiscussionBoard.errors[766930].message }}
  • Profile picture of the author astevn816
    Originally Posted by callmestrip View Post

    Prob. not a prog. question but if your a prog., you got more brains than I do.

    I want to forward/mask a domain. I know it's very simple on GoDaddy but I'm trying to do it in Bluehost.

    How do I forward/mask one of my domains?

    Some kind of code I enter in the .htaccess???

    Does anyone know how to do this or can anyone lead me to a place that clearly demonstrates how?

    Help appreciated- been trying to figure this out for hours. Called cust. support and they couldn't even tell me how to do it.
    GoDaddy just makes a domain forward to simple.
    {{ DiscussionBoard.errors[861408].message }}
  • Profile picture of the author howdoyou
    you can also write a short php index file to foreword your traffic.
    {{ DiscussionBoard.errors[861416].message }}
  • Profile picture of the author thewebhostingdir
    I think you want to redirect one domain to the other domain. But want to display the first domain in the address bar. If so, use the below code and save that as index.htm under the root directory of the first domain.

    <FRAMESET ROWS="100%, *" COLS="100%">
    <FRAME SRC="your link here">

    <NOFRAMES>
    <H1>No Frames? No Problem!</H1>
    Take a look at our
    <A HREF="basic.noframes.html">no-frames</A>
    version.
    </NOFRAMES>

    </FRAMESET>
    {{ DiscussionBoard.errors[871987].message }}

Trending Topics