bridge2heyday |
06-17-2016 12:15 PM |
Quote:
Originally Posted by t-h-c
(Post 2572169)
Excellent thank you very much bridge2heyday it worked!!
Final problem though...as this is on a main domain ie domain.com/forum how do we prevent it creating /forum/forum, I noticed even does this on VB site this is the final hurdle.
|
Thanks ,
you have something installed in the root of your site ?
and you have your forum installed in sub directory /forum ?
anyway,
I will give you a scenario where I have forums installed in subdir /forums
assume you have domain www.domain.com
and vbulletin at www.domain.com/forums
in your admincp change vBulletin URL to www.domain.com instead of www.domain.com/forums
and then use this .htaccess
PHP Code:
RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?domain.com$ RewriteCond %{REQUEST_URI} !^/forums/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /forums/$1
Tricky but working fine :)
Note : this will not work if your directory is /forum , you can rename in that case
--------------- Added [DATE]1466173770[/DATE] at [TIME]1466173770[/TIME] ---------------
Quote:
Originally Posted by cellarius
(Post 2572173)
Ah, that's specific to vB5. I'm not really familiar with that version. For vB4 I would stick to my royally screwed thesis, though ;)
|
Yes , we are in vb5 discussion forum :D
|