Announcement

Collapse
No announcement yet.

Best way to forward URL?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Best way to forward URL?

    I have multiple URL's that I want to have point to my VBulletin site. I've heard that a 301 redirect is the best way to do this so that it will not affect my Google rank but I could never get a 301 redirect working correctly with the login process.

    What is the best way to handle this without affecting Google Rank???
    X-Runner Underground: www.xr-underground.com
    The Unforgiven: www.unforgivenpilots.com

  • #2
    Have 1 main url that loads in the browser location

    Have unlimited alias/forward urls that when clicked on point to this 1 main url. the location bar in browser changes to this 1 main url.

    Then have .htaccess file in the root of your main url account.
    Saying that if any of the alias urls are loaded, it should be a 301 perm redirect to this main url. Telling google they're just aliases and not trying to be duplicate content.

    for example, part of my .htaccess is:

    #########################
    # ADD WWW.
    #########################
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]


    #########################
    # SITE REDIRECTS
    #########################
    # TO VBFANS #
    #############
    RewriteCond %{HTTP_HOST} ^www\.vbulletin.nl
    RewriteRule (.*) http://www.vbulletin-fans.com/$1 [R=301,L]



    Meaning when someone types in vbulletin.nl or www.vbulletin.nl
    they end up on not vbulletin-fans.com, but www.vbulletin-fans.com

    Comment


    • #3
      in this same line....i have a forwarding url...when my members use that "ghosted" url, they do not stay logged in between posts..what do i need to do?

      Comment


      • #4
        You have to make sure all your urls load to 1 main url. You can't have a cookie for the same site for various urls, etc. This will just confuse the cookie system, sessions and browser security will probably not allow it 100%.

        Comment


        • #5
          Floris - thank you for your response. I've added your code to my .htaccess file and will give that a shot once my domain URL forwarding kicks in. Thanks!
          X-Runner Underground: www.xr-underground.com
          The Unforgiven: www.unforgivenpilots.com

          Comment

          Related Topics

          Collapse

          Working...
          X