Results 1 to 10 of 10

Redirect to non-www

This is a discussion on Redirect to non-www within the Troubleshooting forums, part of the vBSEO SEO Plugin category; On my forum Warhammer Online Forums I need it so if you type in the WWW it redirects to the ...

  1. #1
    Junior Member
    Real Name
    David Turnbull
    Join Date
    Oct 2006
    Posts
    21
    Liked
    0 times

    Redirect to non-www

    On my forum Warhammer Online Forums I need it so if you type in the WWW it redirects to the non-WWW. If you go to the WWW version at the moment you're logged out and you can't log in, which I'm sure a few people would get caught out with.

    Any help is appreciated.

  2. #2
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,111
    Liked
    622 times
    Blog Entries
    4
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  3. #3
    Junior Member
    Real Name
    David Turnbull
    Join Date
    Oct 2006
    Posts
    21
    Liked
    0 times
    See, I've done all of that, but it does absolutely nothing. I've tried putting code in the htaccess in the public_html directory, and the one in the /forums directory, no change with either :(

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    What is your forums .htaccess contents now?

  5. #5
    Junior Member
    Real Name
    David Turnbull
    Join Date
    Oct 2006
    Posts
    21
    Liked
    0 times
    Hmm, I just noticed something. My licence for vbSeo is registered to www.warhammergamers.com/forums - I know that is a long-shot but could that be affecting it?

    Anyways, here are my two htaccess files:

    public_html

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www\.warhammergamers\.com$
    RewriteRule ^(.*)$ http://warhammergamers.com/$1 [L,R=301]
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    /forums

    Code:
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    # RewriteBase /forums/
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
    RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    I see that redirect works for your site homepage, but you don't have redirect rule in forums .htaccess file, that's why forum is not redirected.

  7. #7
    Junior Member
    Real Name
    David Turnbull
    Join Date
    Oct 2006
    Posts
    21
    Liked
    0 times
    I put that code at the top of my htaccess file, but then www.warhammergamers.com/forums redirects to http://warhammergamers.com//home/war...ic_html/forums

  8. #8
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times

  9. #9
    Junior Member
    Real Name
    David Turnbull
    Join Date
    Oct 2006
    Posts
    21
    Liked
    0 times
    Perfect! It appears to be working great now.

    Thanks.

  10. #10
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Great!

Similar Threads

  1. http://www.vbseo.com/redirect-to/?redirect=http
    By gooster in forum General Discussion
    Replies: 3
    Last Post: 04-10-2008, 12:30 PM
  2. How to redirect this url
    By ssmarket.net in forum Custom Rewrite Rules
    Replies: 1
    Last Post: 09-10-2007, 06:32 AM
  3. Redirect PR
    By Ziki in forum General Discussion
    Replies: 11
    Last Post: 02-18-2007, 01:22 PM
  4. How do I redirect the right way?
    By nebu in forum General Discussion
    Replies: 2
    Last Post: 01-06-2007, 07:44 PM

Posting Permissions

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