Get exclusive CAP network offers from top brands

View CAP Offers

Mod rewrite assistance

[bsa_pro_ad_space id=2]
  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #679471
    Anonymous
    Inactive

    I think this is the code you need:

    RewriteEngine On

    RewriteCond %{HTTP_HOST} ^freerolls.drawdead.com$ [NC]

    RewriteRule ^(.*)$ http://freerolls.drawdead.com/$1 [R=301,L]

    This should do the trick for the first one.

    Anyone typing freerols.drawdead.com will be redirected to http://freerolls.drawdead.com

    For the others I don’t know exactly how to handle.

    #679478
    Anonymous
    Inactive

    Actually, won’t the user’s browser assume http:// if it is left off? The browser can’t send a request to the server without knowing a protocol.

    You’ll still need to mod_rewrite for the others though, and I”ll leave that to someone who knows what they’re talking about. :satisfied

    #679480
    Anonymous
    Inactive

    well the best place that can help you is this one:
    http://forum.modrewrite.com/

    #679528
    Anonymous
    Inactive

    thanks, ill check it out!

    #679926
    Anonymous
    Inactive

    What is the benefit of doing this?

    #679937
    Anonymous
    Inactive

    No duplicate content penalty for one.

    #679958
    Anonymous
    Inactive

    Yes as a way of protection, everyone should redirect traffic from yoursite.com to http://www.yoursite.com.

    It’s easy to do. Just use a .htaccess file on your webroot (usually the public_html folder), with the following code:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^yoursite.com$ [NC]
    RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L]

Viewing 7 posts - 1 through 7 (of 7 total)