vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
New vBSEO Discount Level for Network Builders Meet vBSEO Team in New York (Nov. 3rd & 4th) vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

Incorrectly redirecting from www.mydomain to mydomain.com

This is a discussion on Incorrectly redirecting from www.mydomain to mydomain.com within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I have a .htacces like this : PHP Code: Options  + FollowSymlinks RewriteEngine on Rewritecond  %{ http_host } ^ mydomain . com  ...

Go Back   vBulletin SEO Forums > vBSEO SEO Plugin > Troubleshooting

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-05-2006, 04:06 PM
Junior Member
 
Real Name: fischermx
Join Date: Sep 2006
Posts: 27
Incorrectly redirecting from www.mydomain to mydomain.com

I have a .htacces like this :

PHP Code:
Options +FollowSymlinks
RewriteEngine on
Rewritecond 
%{http_host} ^mydomain.com [nc]
Rewriterule ^(.*)$ http://www.mydomain.com/$1 [r=301,nc]
RewriteCond %{REQUEST_URI} !^/foros
RewriteRule 
^(.*)$ /foros [r=301,nc
Since I have nothing on the root for now (planned to future).
Now, when my the visitor arrives at http://www.mydomain.com/foros, it is sent back to http://mydomain.com/foros !
I notice that if I get ride of the .hattaccess on the /foros root, it works as it used to work, so, it is the new .htaccess which is causing this.

Where do I configure this ? I want to keep the "www" always.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 09-05-2006, 05:01 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,449
Blog Entries: 1
Hello,

please try to change
Code:
RewriteCond %{REQUEST_URI} !^/foros
to:
Code:
RewriteCond %{REQUEST_FILENAME} !^foros
__________________
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 09-05-2006, 05:19 PM
Junior Member
 
Real Name: fischermx
Join Date: Sep 2006
Posts: 27
mmm still does not redirect correctly.
going to www.mysite.com sends me to mysite.com/foros

Before I installed vBSeo my .htaccess was doing what I wanted.
I guess it might need to be modified, though.

Last edited by fischermx; 09-05-2006 at 05:30 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 09-05-2006, 05:44 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,449
Blog Entries: 1
Did you change your vBSEO's .htaccess file?
__________________
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 09-05-2006, 06:20 PM
Junior Member
 
Real Name: fischermx
Join Date: Sep 2006
Posts: 27
I didn't change it a bit.
I tried to include the rewritebase like this:
RewriteBase /foros/

But it didn't make any difference.

Did I have to change something else in the vbSeo .htaccess?

Last edited by fischermx; 09-05-2006 at 06:32 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 09-05-2006, 07:14 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,449
Blog Entries: 1
When I open http://www.yourdomain.com/foros/ it is loaded correctly without redirects. Do you still have the issue?
__________________
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 09-05-2006, 07:20 PM
Junior Member
 
Real Name: fischermx
Join Date: Sep 2006
Posts: 27
I think this solved it:

PHP Code:
Options +FollowSymlinks
RewriteEngine on
Rewritecond 
%{http_host} ^mydomain.com [nc]
Rewriterule ^(.*)$ http://www.mydomain.com/$1 [r=301,nc]
Rewritecond %{http_host} ^www.mydomain.com$ [nc]
Rewriterule ^(.*)$ http://www.mydomain.com/foros/$1 [r=301,nc] 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 09-05-2006, 07:32 PM
Junior Member
 
Real Name: fischermx
Join Date: Sep 2006
Posts: 27
I fixed a few minutes before your post by modifying my root .htaccess.
Still I don't know why it worked, why it stopped to work and why the new version is working fine now ...
Sorry, I'm a total rewrite ignorant.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 09-05-2006, 07:42 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,449
Blog Entries: 1
The following should be better:
Code:
Options +FollowSymlinks
RewriteEngine on
Rewritecond %{http_host} ^mydomain.com [nc]
Rewriterule ^(.*)$ http://www.mydomain.com/$1 [L,r=301,nc]
Rewritecond %{REQUEST_FILENAME} !^foros
Rewriterule ^(.*)$ http://www.mydomain.com/foros/$1 [r=301,nc]
because last rewrite rule in your .htaccess will force endless loop of redirects if you will remove vBSEO's .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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 09-05-2006, 07:55 PM
Junior Member
 
Real Name: fischermx
Join Date: Sep 2006
Posts: 27
Yes, that one worked as well. I'll keep your version.

Thanks a lot !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11  
Old 09-05-2006, 08:13 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,449
Blog Entries: 1
You are welcome!
__________________
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:05 AM.


Powered by vBulletin Version 3.8.0 Beta 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.