![]() |
Quote:
# 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 / RewriteCond %{HTTP_HOST} !^www\.ontrackdriver\.com RewriteRule (.*) http://www.ontrackdriver.com/$1 [L,R=301] RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron) RewriteRule ^(.*\.php(/.*)?)$ vbseo.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ vbseo.php [L,QSA] |
I'm no expert in this area, but I'm guessing that:
Code:
RewriteCond %{HTTP_HOST} !^www\.ontrackdriver\.com This would indeed redirect m.ontrackdriver.com to www.ontrackdriver.com VBSEO would do this as it is good SEO to only have content listed on a single domain name, in this case it's www.ontrackdriver.com. I'd suggest changing this to: Code:
RewriteCond %{HTTP_HOST} !^ontrackdriver\.com As I said, I'm no expert in this, so rather than delete the lines, copy then and then comment out the originals with a leading '#' character to make reversal easy if need be. You could even do a quick initial test by just commenting out that section altogther before editing. hope this helps |
Thanks, dartho. Commenting out the code worked. But changing it to the code you suggested doesn't work (returns 500 level server error).
At least it appears to be working right now, will continue to test. Is having the code commented out a viable long term solution? Or will that leave vbseo or anything else affected? |
Yeah - I got that previous code quite wrong - try removing the '!' or try the following
Code:
RewriteCond %{HTTP_HOST} ^ontrackdriver.com$ |
Quote:
|
As mentioned - I'm no expert in this rewrites .... how about:
Code:
RewriteCond %{HTTP_HOST} !^www\.ontrackdriver\.com [AND] |
currently have this setup
http://www.site1.com/forums/ shares the forums with http://www.site2.com/forums/ issue is i am not logged in when i goto the new site forums. everything else seems to be working fine thanks |
Hi :)
I have some error: Quote:
|
Quote:
|
Quote:
Quote:
2) Different domain, different style 3) Domain Style? Take out the www and the "http" That fixed the problem for me. Love this add-on...great stuff! |
All times are GMT. The time now is 11:55 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|