vBulletin Search Engine Optimization
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 ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
#46
| ||||
| ||||
| 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 |
|
#47
| ||||
| ||||
| 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.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#48
| ||||
| ||||
| Thank you Oleg. |
|
#49
| ||||
| ||||
| 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. |
|
#50
| ||||
| ||||
| 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.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#51
| ||||
| ||||
| Quote:
Works perfectly 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]
|
|
#52
| ||||
| ||||
| Yes, it should work fine together.
__________________ Oleg Ignatiuk / Crawlability Inc. vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#53
| |||
| |||
| 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]
|
|
#54
| ||||
| ||||
| Hello, make sure that your host supports mod_rewrite and rewrite rules are allowed in .htaccess.
__________________ Oleg Ignatiuk / Crawlability Inc. vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#55
| |||
| |||
| Yes, they do support mod_rewrite. Edit: NVM got it fixed Last edited by wolf32; 08-27-2007 at 11:01 AM. |
|
#56
| ||||
| ||||
| 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? |
|
#57
| |||
| |||
| 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. |
|
#58
| ||||
| ||||
| Replied to you here: Redirecting the xxx.com to www.xxx.com
__________________ Keith Cohen / Crawlability Inc. vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. My Personal Sites: My Blog | GPS Discussion Forum |
|
#59
| |||
| |||
| 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? |
|
#60
| |||
| |||
| 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 07:25 PM. |
| Thread Tools | |
|
|
LinkBacks (?)
| ||||
| Posted By | For | Type | Date | |
| Logout Sorunu - Bütün üyeler tekrar login olmak zorunda - Webmaster Forum & Webmaster Okulu | Post #2 | Pingback | 04-09-2008 05:00 PM | |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Redirecting Custom Rewrites outside forum folder | vissa | Bug Reporting | 7 | 03-10-2006 05:55 PM |
| 301 homepage | Ashley | General Discussion | 2 | 02-15-2006 05:34 AM |
| 301 Redirects .. built in? | Ace Shattock | General Discussion | 1 | 09-30-2005 11:18 AM |