1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

301 Redirect - Cain't finger it out

Discussion in 'Cloaking and Content Generators' started by DREAMCHASR, Apr 23, 2008.

  1. DREAMCHASR

    DREAMCHASR Registered Member

    Joined:
    Dec 20, 2007
    Messages:
    63
    Likes Received:
    7
    Home Page:
    This is my current "301 permanent redirect" setup.....

    Code:
    
    RewriteEngine on
    
    RewriteCond %{HXXP_HOST} ^nunyadamnbizness.com$ [OR]
    RewriteCond %{HXXP_HOST} ^www.nunyadamnbizness.com$
    RewriteRule ^/?$ hxxp://Mysiteexample.com/NunYaDamnBizness [R=301,L]
    
    
    My "Nunyadamnbizness(dot)com" is hosted on one server and pointed to my master site hosted on another.

    The redirect is working fine, except I want the address in the browser to hold so customer doesn't know they got redirected....

    What line of code am I missing....
     
  2. boomboomer

    boomboomer Executive VIP

    Joined:
    Feb 7, 2008
    Messages:
    715
    Likes Received:
    878
    try this

    RewriteRule (.*) hxxp://Mysiteexample.com/NunYaDamnBizness
     
  3. DREAMCHASR

    DREAMCHASR Registered Member

    Joined:
    Dec 20, 2007
    Messages:
    63
    Likes Received:
    7
    Home Page:
    Just replace with that..or add the R=301 stuff also?
     
  4. boomboomer

    boomboomer Executive VIP

    Joined:
    Feb 7, 2008
    Messages:
    715
    Likes Received:
    878
    Try with both .. I don't think that should make a difference though ..
     
  5. DREAMCHASR

    DREAMCHASR Registered Member

    Joined:
    Dec 20, 2007
    Messages:
    63
    Likes Received:
    7
    Home Page:
    Tried both ways...both redirected fine...but address didn't hold, shows new address....
     
  6. boomboomer

    boomboomer Executive VIP

    Joined:
    Feb 7, 2008
    Messages:
    715
    Likes Received:
    878
    From
    Code:
    http://www.webconfs.com/how-to-redirect-a-webpage.php
     
  7. boomboomer

    boomboomer Executive VIP

    Joined:
    Feb 7, 2008
    Messages:
    715
    Likes Received:
    878
    Another thing, you don't need the rewritecond lines
     
  8. DREAMCHASR

    DREAMCHASR Registered Member

    Joined:
    Dec 20, 2007
    Messages:
    63
    Likes Received:
    7
    Home Page:
    ....even that redirects like a mofo..but the address switches to new site....

    I'm still stumped..
     
  9. boomboomer

    boomboomer Executive VIP

    Joined:
    Feb 7, 2008
    Messages:
    715
    Likes Received:
    878
    I finally found some info about this - but your server needs to be configured properly for this.


    The trick is the P flag, that's shorthand for throughput proxy:

    RewriteEngine on
    RewriteBase /~quux/
    RewriteRule ^hotsheet/(.*)$ http://www.tstimpreso.com/hotsheet/$1 [P]

    With this in the address line of the browser:

    1) http // www.your-domain.tld/~quux/hotsheet/page.htm

    ...you will now see the content that is here (on another domain):

    2) http // www.tstimpreso.com/hotsheet/page.htm

    'proxy|P' (force proxy)
    This flag forces the substitution part to be internally forced as a proxy request and immediately (i.e., rewriting rule processing stops here) put through the proxy module. You have to make sure that the substitution string is a valid URI (e.g., typically starting with http://hostname) which can be handled by the Apache proxy module. If not you get an error from the proxy module.

    Notice: To use this functionality make sure you have the proxy module compiled into your Apache server program. If you don't know please check whether mod_proxy.c is part of the ``httpd -l'' output. If yes, this functionality is available to mod_rewrite. If not, then you first have to rebuild the ``httpd'' program with mod_proxy enabled.
     
  10. blackhatttt

    blackhatttt Regular Member

    Joined:
    Apr 11, 2008
    Messages:
    221
    Likes Received:
    19
    Why don't you just redirect the domain name at your domain name account from your domain name provider. I think that they will have the option to do a 301 redirect to your main domain name.
     
  11. indianfreak

    indianfreak Power Member

    Joined:
    Jan 4, 2008
    Messages:
    557
    Likes Received:
    390
    It will never work if you finger it. LOL. Just joking. Blackhat rich is right. Use the option from the domain provider.
     
  12. boomboomer

    boomboomer Executive VIP

    Joined:
    Feb 7, 2008
    Messages:
    715
    Likes Received:
    878
    His problem is not the redirect, but the url in the address bar. Course, he could use frames also for this purpose ...