Page 4 of 5 FirstFirst 1 2 3 4 5 LastLast
Results 46 to 60 of 62

301 Redirecting Domains

This is a discussion on 301 Redirecting Domains within the General Discussion forums, part of the vBulletin SEO Discussion category; I hope you don't mind me resurrecting an old thread... I need to do a redirect in .htaccess so that ...

  1. #46
    eJM
    eJM is offline
    Senior Member eJM's Avatar
    Real Name
    Jim McClain
    Join Date
    May 2006
    Location
    teh Ether
    Posts
    303
    Liked
    2 times
    I hope you don't mind me resurrecting an old thread...

    I need to do a redirect in .htaccess so that people and search engines that had URLs to an old UBBThreads installation on this domain, now get redirected to the vBulletin forum home page. The thread IDs and all the folder and file names are different, but the domain is the same.

    So, anyone looking for any folder or file residing in (with and without www) longrangehunting.com/ubbthreads should get redirected to www.longrangehunting.com/forums.

    Can someone help me with writing that?

    Thanks,

    Jim

  2. #47
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hello,

    you should create .htaccess file in ubbthreads/ folder:
    Code:
    RewriteEngine on
    RewriteRule .* http://www.longrangehunting.com/forums/? [L,R=301]
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #48
    eJM
    eJM is offline
    Senior Member eJM's Avatar
    Real Name
    Jim McClain
    Join Date
    May 2006
    Location
    teh Ether
    Posts
    303
    Liked
    2 times
    Thank you Oleg.

  4. #49
    Member Griffin's Avatar
    Real Name
    Sean James
    Join Date
    Jan 2006
    Location
    Sydney Australia
    Posts
    89
    Liked
    0 times
    vbseo allows you to changes /forums/index.php to /forums/ which is a great feature, but how do i do this from non-vBulletin pages?

    I would like to the change the root index files domain.com/index.php to domain.com

    Ive been searching these forums for a about 1 hour and cant find a solution for this.
    Bluepearl Design
    http://www.bluepearl-design.com - Design Community
    http://www.musclesci.com - BodyBuilding Community
    http://www.vbulletin-templates.com - Free vBulletin Templates

  5. #50
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    You can create .htaccess in domain root for that:

    Code:
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} GET
    RewriteCond %{THE_REQUEST} "T /index.php"
    RewriteCond %{QUERY_STRING} ^$
    RewriteRule .* http://www.domain.com/? [L,R=301]
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  6. #51
    Member Griffin's Avatar
    Real Name
    Sean James
    Join Date
    Jan 2006
    Location
    Sydney Australia
    Posts
    89
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    You can create .htaccess in domain root for that:

    Code:
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} GET
    RewriteCond %{THE_REQUEST} "T /index.php"
    RewriteCond %{QUERY_STRING} ^$
    RewriteRule .* http://www.domain.com/? [L,R=301]
    awesome thanks mate been searching for ages for this code

    Works perfectly Bluepearl Design - Professional Web Design - Professional Templates

    One last thing, i also have a rewrite code to change links like www to http://www will these codes work properly together?

    Code:
    RewriteEngine On
    RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ /forums/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    RewriteCond %{HTTP_HOST} !^www\.bluepearl-design\.com [NC]
    RewriteCond %{HTTP_HOST} !^$ 
    RewriteRule ^(.*) http://www.bluepearl-design.com/$1 [L,R=301] 
    RewriteCond %{REQUEST_METHOD} GET
    RewriteCond %{THE_REQUEST} "T /index.php"
    RewriteCond %{QUERY_STRING} ^$
    RewriteRule .* Bluepearl Design - Professional Web Design - Professional Templates? [L,R=301]
    Bluepearl Design
    http://www.bluepearl-design.com - Design Community
    http://www.musclesci.com - BodyBuilding Community
    http://www.vbulletin-templates.com - Free vBulletin Templates

  7. #52
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Yes, it should work fine together.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  8. #53
    Junior Member
    Real Name
    Wolf
    Join Date
    Feb 2007
    Posts
    26
    Liked
    0 times
    I'm trying to redirect, and I think my code is correct but it's not redirecting. Here's what I have...

    Code:
    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^u-connex\.com
    RewriteRule ^(.*)$ http://www.u-connex.com/$1 [R=permanent,L]

  9. #54
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hello,

    make sure that your host supports mod_rewrite and rewrite rules are allowed in .htaccess.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  10. #55
    Junior Member
    Real Name
    Wolf
    Join Date
    Feb 2007
    Posts
    26
    Liked
    0 times
    Yes, they do support mod_rewrite.

    Edit: NVM got it fixed
    Last edited by wolf32; 08-27-2007 at 12:01 PM.

  11. #56
    Member Griffin's Avatar
    Real Name
    Sean James
    Join Date
    Jan 2006
    Location
    Sydney Australia
    Posts
    89
    Liked
    0 times
    I have my gallery in a sub-directory Bluepearl Design - Bluepearl Gallery what do i get to my .htaccess to change incoming links to /gallery/index.php to /gallery/ like my forums?
    Bluepearl Design
    http://www.bluepearl-design.com - Design Community
    http://www.musclesci.com - BodyBuilding Community
    http://www.vbulletin-templates.com - Free vBulletin Templates

  12. #57
    Member
    Real Name
    Gary Mullins
    Join Date
    Jan 2006
    Location
    Nashville, TN
    Posts
    67
    Liked
    0 times
    I have tried the code here to redirect all traffic for pimprig.com to pcapex.com but when I implement that code then instead of seeing my site I see a default Red Hat Linux test page? Any idea what's up with that?

    Here is a bit more info that may help. The site orginally was pimprig.com. When I switched to pcapex.com I simply added pcapex.com to the domain alias list in the Ensim CP. Since then I have been unable to forward visitors to the new domain from the old one. I would REALLY like to get this sorted out.

  13. #58
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times

  14. #59
    Member
    Real Name
    Gary Mullins
    Join Date
    Jan 2006
    Location
    Nashville, TN
    Posts
    67
    Liked
    0 times
    I just tried what you suggested but when I implement the .htaccess below in the domain root folder I get a Red Hat page like this:

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

    Result:
    Red Hat Enterprise Linux Test Page This page is used to test the proper operation of the Apache HTTP server after it has been installed. If you can read this page, it means that the Apache HTTP server installed at this site is working properly.



    When I remove that redirect code then it loads the page correctly. Strange, huh? What makes it EXTRA strange is that I am using this .htaccess code on the many subdomains on the site and it works great:

    RewriteEngine On

    RewriteBase /reviews

    RewriteCond %{HTTP_HOST} !^reviews\.pcapex\.com
    RewriteRule (.*) http://reviews.pcapex.com/$1 [L,R=301]

    ErrorDocument 401 /errordocs/401.htm
    ErrorDocument 403 /errordocs/403.htm
    ErrorDocument 404 /errordocs/404.htm
    ErrorDocument 500 /errordocs/500.htm

    Any idea how to get the root folder to work right with these redirects?

  15. #60
    Member
    Real Name
    Gary Mullins
    Join Date
    Jan 2006
    Location
    Nashville, TN
    Posts
    67
    Liked
    0 times
    I even tried something simple like this to forward http://pcapex.com to http://www.pcapex.com. This is the .htaccess code I used as well as the result:

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

    ErrorDocument 401 /errordocs/401.htm
    ErrorDocument 403 /errordocs/403.htm
    ErrorDocument 404 /errordocs/404.htm
    ErrorDocument 500 /errordocs/500.htm

    Result (trying to bring up a page on our root domain):

    Forbidden You don't have permission to access /advertising.php on this server.
    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
    Last edited by GlitterKill; 11-25-2007 at 08:25 PM.

Page 4 of 5 FirstFirst 1 2 3 4 5 LastLast

Similar Threads

  1. Redirecting Custom Rewrites outside forum folder
    By vissa in forum Bug Reporting
    Replies: 7
    Last Post: 03-10-2006, 06:55 PM
  2. 301 homepage
    By Ashley in forum General Discussion
    Replies: 2
    Last Post: 02-15-2006, 06:34 AM
  3. 301 Redirects .. built in?
    By Ace Shattock in forum General Discussion
    Replies: 1
    Last Post: 09-30-2005, 12:18 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
  •