vBulletin 4, the most powerful community software + vBSEO 3.5, the ultimate SEO solution = Your ultimate platform for 2010 and beyond. Click below to learn more.

Results 1 to 13 of 13

[Question] 301 Redirect

This is a discussion on [Question] 301 Redirect within the Link Building forums, part of the vBulletin SEO Discussion category; Hello everyone i've changed my domain from www.emuleboard.net to www.techsupportforum.de , is there a way to redirect (301 via .htaccess) ...

  1. #1
    Member Doc Great's Avatar
    Real Name
    Sven
    Join Date
    Aug 2005
    Location
    Germany
    Posts
    86

    Question [Question] 301 Redirect

    Hello everyone

    i've changed my domain from www.emuleboard.net to www.techsupportforum.de, is there a way to redirect (301 via .htaccess) from www.emuleboard.net/threadxyz1.html to www.techsupportforum.de/threadxyz1.html ? The Thread IDs are the same, so it must be possible, but how

    I've to say that both domains are in the same folder (Confixx) so the following does not work
    Code:
    RewriteEngine On 
    RewriteRule ^(.*)\.html$ http://www.techsupportforum.de/$1.html [R=301,L]
    
    Or can i write this that it works??

    Yours,
    Sven

  2. #2
    rob
    rob is offline
    Senior Member rob's Avatar
    Real Name
    Rob
    Join Date
    Oct 2005
    Location
    Eastbourne, UK
    Posts
    921

    Re: [Question] 301 Redirect

    I'm pretty sure the following will work for you:-
    Code:
    RewriteEngine On 
    RewriteRule ^(.*) http://www.techsupportforum.de/$1 [L,R=301]
    
    Rob Collyer - SEO Specialist
    StudentMidwife.NET

  3. #3
    Member Doc Great's Avatar
    Real Name
    Sven
    Join Date
    Aug 2005
    Location
    Germany
    Posts
    86

    Re: [Question] 301 Redirect

    Quote Originally Posted by rob
    I'm pretty sure the following will work for you:-
    Code:
    RewriteEngine On 
    RewriteRule ^(.*) http://www.techsupportforum.de/$1 [L,R=301]
    
    Sorry, maybe a mistake of mine in the .htaccess??
    Code:
    Options +FollowSymLinks
    
    # 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 /
    RewriteRule ^(sitemap.*\.(xml\.gz|txt))$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{HTTP_HOST} ^techsupportforum\.de$ [NC]
    RewriteRule ^(.*)$ http://www.techsupportforum.de/$1 [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.*)$ $1 [L]
    
    RewriteCond %{QUERY_STRING} !vbseourl=
    #RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
    
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
    

  4. #4
    rob
    rob is offline
    Senior Member rob's Avatar
    Real Name
    Rob
    Join Date
    Oct 2005
    Location
    Eastbourne, UK
    Posts
    921

    Re: [Question] 301 Redirect

    What I posted is the ONLY thing you need in that file if you are redirecting all traffic.
    Rob Collyer - SEO Specialist
    StudentMidwife.NET

  5. #5
    Member Doc Great's Avatar
    Real Name
    Sven
    Join Date
    Aug 2005
    Location
    Germany
    Posts
    86

    Re: [Question] 301 Redirect

    No the point is, that i have both domains on the same server (folder of confixx) and i want to keep all (vBSEO) URLs (backlinks). If there was a link at www.vbseo.com e.g. http://www.emuleboard.net/fun-forum/...ei-google.html i want that this link points the the new domain --> http://www.techsupportforum.de/fun-f...ei-google.html

    emuleboard.net has just to be replaced by techsupportforum.de


  6. #6
    rob
    rob is offline
    Senior Member rob's Avatar
    Real Name
    Rob
    Join Date
    Oct 2005
    Location
    Eastbourne, UK
    Posts
    921

    Re: [Question] 301 Redirect

    Code:
    RewriteCond %{HTTP_HOST} !^www\.techsupportforum\.de [NC] 
    RewriteCond %{HTTP_HOST} !^$ 
    RewriteRule ^(.*) http://www.techsupportforum.de/$1 [L,R=301]
    
    Is this what you mean?
    Rob Collyer - SEO Specialist
    StudentMidwife.NET

  7. #7
    Member Doc Great's Avatar
    Real Name
    Sven
    Join Date
    Aug 2005
    Location
    Germany
    Posts
    86

    Re: [Question] 301 Redirect

    Could be possible .....

































    muchas gratias it works perfektly (i think)

  8. #8
    Senior Member T2DMan's Avatar
    Real Name
    Michael Brandon
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand
    Posts
    359

    more on 301's - htaccess needed for /forums/.htaccess

    I have struggled with being able to get the 301 redirects working for not only the root domain, but for all the inner url's as well.

    An htaccess in the root does the non www to www redirects.

    But when you have an htaccess in the /forums/ directory as well, you need to repeat the non www to www redirect coding. But the standard one mentioned above does not work.

    This works well: - added to the htaccess file in your forums, or the equivalent in your "forum" directory.

    Code:
    RewriteCond %{HTTP_HOST} ^domain.com 
    RewriteCond %{REQUEST_URI} ^\/forums
    RewriteRule (.*) http://www.domain.com/forums/$1 [R=301,L]
    
    T2DMan
    Search engine optimize vBulletin - over 55001 views
    or Contract me to onpage SEO your forum - experience the additional SERP improvements


  9. #9
    Member Doc Great's Avatar
    Real Name
    Sven
    Join Date
    Aug 2005
    Location
    Germany
    Posts
    86

    Re: [Question] 301 Redirect

    I think this two rules are a Tutorial worth how about pinning a separat thread? People often change their domains w/o knowing how to keep SERPS.

  10. #10
    Senior Member
    Real Name
    Joseph Ward
    Join Date
    Jun 2005
    Posts
    23,847
    Blog Entries
    9

    Re: [Question] 301 Redirect

    @Doc Great:

    Time permitting, we are going to assemble valuable information from within the forums to summarize as stickies or create articles, etc.

  11. #11
    Senior Member T2DMan's Avatar
    Real Name
    Michael Brandon
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand
    Posts
    359

    Re: [Question] 301 Redirect

    Quote Originally Posted by T2DMan

    Code:
    RewriteCond %{HTTP_HOST} ^domain.com 
    RewriteCond %{REQUEST_URI} ^\/forums
    RewriteRule (.*) http://www.domain.com/forums/$1 [R=301,L]
    
    Problem with the above is that when the following url is accessed - ie without the trailing slash
    Code:
    http://domain.com/forums
    
    it redirects to:
    Code:
    http://www.domain.com/forums//home/domain/public_html/forums
    
    Any ideas gratefully accepted.
    T2DMan
    Search engine optimize vBulletin - over 55001 views
    or Contract me to onpage SEO your forum - experience the additional SERP improvements


  12. #12
    vBSEO Staff Juan Muriente's Avatar
    Real Name
    Juan Carlos Muriente
    Join Date
    Jun 2005
    Location
    Puerto Rico
    Posts
    13,923

    Re: [Question] 301 Redirect

    Try adding a slash character:
    RewriteCond %{HTTP_HOST} ^domain.com
    RewriteCond %{REQUEST_URI} ^\/forums\/
    RewriteRule (.*) http://www.domain.com/forums/$1 [R=301,L]
    Juan Muriente / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  13. #13
    Member aacircle's Avatar
    Real Name
    aacircle
    Join Date
    Nov 2005
    Posts
    82

    Re: [Question] 301 Redirect

    Anyone taken a look at http://willmaster.com/master/404/index.shtml?willwpao ?

    Seems like a neat bit of software. Am looking for a solution to redirect users to my home page (not vBulletin forum) if they incorrectly type in url.

Similar Threads

  1. 301 redirect not working?
    By googledave in forum Troubleshooting
    Replies: 2
    Last Post: 02-12-2006, 08:37 PM
  2. Best way to redirect my old forum to vb using 301
    By Bellinis in forum General Discussion
    Replies: 11
    Last Post: 10-29-2005, 09:03 PM
  3. Incorrect 301 redirect?
    By SEO Report in forum Bug Reporting
    Replies: 2
    Last Post: 08-25-2005, 12:14 AM
  4. 301 redirect original dynamic content
    By mediax in forum Bug Reporting
    Replies: 4
    Last Post: 07-31-2005, 02:22 PM