I've been trying to get this for a very long time and I think I'm already going insane lol. My problem is that my url rewrites become something like:
http://mydomain.com/domains/mydomain.com/html/forums/members/username.html
The red part is my problem. My site is hosted on MediaTemple and it seems that it gives out the full path from the server itself. How can I make it so it appends only forums/members/username.html? One more thing, I was wondering why the full path starts after mydomain.com. Why is it that forums/ is not includedm even though i have RewriteRule ^(.*)$ http://mydomain.com/forums/$1 [L,R=301] in my htaccess?
Using vBulletin 3.8.0 and vBSEO 3.2.0, here's the full htaccess:
I'd really appreciate it guys! Thanks a lot and more power to vBTEAM!
http://mydomain.com/domains/mydomain.com/html/forums/members/username.html
The red part is my problem. My site is hosted on MediaTemple and it seems that it gives out the full path from the server itself. How can I make it so it appends only forums/members/username.html? One more thing, I was wondering why the full path starts after mydomain.com. Why is it that forums/ is not includedm even though i have RewriteRule ^(.*)$ http://mydomain.com/forums/$1 [L,R=301] in my htaccess?
Using vBulletin 3.8.0 and vBSEO 3.2.0, here's the full htaccess:
PHP:
# 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 /forums/
RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$
RewriteRule ^(.*)$ http://mydomain.com/forums/$1 [L,R=301]
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron)
RewriteRule ^((archive/)?(.*\.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'd really appreciate it guys! Thanks a lot and more power to vBTEAM!