vBulletin Search Engine Optimization
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 ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Incorrectly redirecting from www.mydomain to mydomain.com
I have a .htacces like this : PHP Code: 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. |
|
#2
| ||||
| ||||
|
Hello, please try to change Code: RewriteCond %{REQUEST_URI} !^/foros
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. |
|
#3
| |||
| |||
|
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. |
|
#4
| ||||
| ||||
|
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. |
|
#5
| |||
| |||
|
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. |
|
#6
| ||||
| ||||
|
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. |
|
#7
| |||
| |||
|
I think this solved it: PHP Code: |
|
#8
| |||
| |||
|
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. |
|
#9
| ||||
| ||||
|
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]
__________________ 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. |
|
#10
| |||
| |||
|
Yes, that one worked as well. I'll keep your version. Thanks a lot ! |
|
#11
| ||||
| ||||
|
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. |