ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Forum and subdomain story

September 14, 2007 8:35am

Subscribe [3]
  • #1 / Sep 14, 2007 8:35am

    MSimos

    62 posts

    Hey guys and gals,

    I know you have talked a lot about this but I search every post in the forum, every article about running forums from a subdomain and can’t make it to work.

    Heres what I do:

    Fisrt I create a subdomain for my forums called http://forum.mysite.com (there is no .htacces file in my domain structure, so for my subdomains I get another folder. This is my domain structure:

    mysite/httpdocs/system/ (this is where my system folder exists)

    and this is my subdomain structure:

    mysite/subdomain/forum/httpdocs/

    So I add the following variable to the config.php file

    $conf['use_forum_url'] = 'y';

    and then copy my index.php and path.php to the subdomain folder.

    So what is the right path and variables I should add to my path.php to make it work properly cause I can’t make this thing to work…

    Then if i get this right, I must go to my forum module preferences and add “http://forum.mysite.com” to my forum URL and the word “forums” to triger.

    Help!

  • #2 / Sep 14, 2007 8:41am

    MSimos

    62 posts

    I have tried so far
    /mysite.com/httpdocs/system/
    /httpdocs/system/
    /http://mysite.com/system/
    /mysite/httpdocs/

    nothing works in my path file

  • #3 / Sep 14, 2007 1:57pm

    Lisa Wess

    20502 posts

    If you visit your subdomain with /index.php/forums (index.php and the trigger word) - do the forums show up?  I suspect so, you will need to use the mod_rewrite rule to get them to show up at just your subdomain.

    See this kb entry.

  • #4 / Sep 14, 2007 2:24pm

    MSimos

    62 posts

    Yes Lisa the forums do show up properly from within the expression engine like you describe. I just wanna make them come up from forums.mysite.com and not the index.php/forums. I know its easy with multiple site management extension but its not worth getting that one just to run yor forums from a subdomain.

    I have seen the article you provide. Like i said before so many times… i do not have .htaccess.

    Can anybody help to make this work?

  • #5 / Sep 14, 2007 2:31pm

    Lisa Wess

    20502 posts

    You’ll need some form of rewriting to have the subdomain URL pull from the real URL. What server are you running on?

  • #6 / Sep 14, 2007 2:43pm

    MSimos

    62 posts

    The server is RedHat Linux Enterprise 4 with HSPComplete Plesk 8.1 ControlPanel if that makes any sense. At least thats what the provider states on their web site.

  • #7 / Sep 14, 2007 2:53pm

    Lisa Wess

    20502 posts

    That should support .htaccess - do they specifically state they don’t?

  • #8 / Sep 14, 2007 2:53pm

    MSimos

    62 posts

    Oh and it says IMAP Server if thats what you are asking…

  • #9 / Sep 14, 2007 3:52pm

    MSimos

    62 posts

    No they don’t state that they don’t from what I can see on their web site, but they don’t say that they do like you do in Engine Hosting. Is there a way I can find out by myself?

  • #10 / Sep 14, 2007 4:00pm

    Lisa Wess

    20502 posts

    Sure, create a .htaccess file and place them in it:

    redirect /test/bogus/ http://example.com/not/fake/

    Then visit your site with /text/bogus/ appended at the end, and see if it redirects. It should support it, though.  You could also send them an email asking if they support mod_rewrite in .htaccess, my bet is yes.

  • #11 / Sep 14, 2007 4:08pm

    MSimos

    62 posts

    Can i create an .htaccess file with a text editor? and does it need a name like something.htaccess?

  • #12 / Sep 14, 2007 4:15pm

    MSimos

    62 posts

    Yup it works! So I do have .htaccess feeeeww… i bet things are much easier now right?

    Do I need to write something else other than this in my .htaccess file?

    RewriteEngine On
    RewriteCond %{HTTP_HOST} forums.example.com
    RewriteCond %{REQUEST_URI} !index.php
    RewriteRule ^(.*)$ index.php/forums/$1

    and where should i put the file, in my subdomain folder?

  • #13 / Sep 14, 2007 4:17pm

    Lisa Wess

    20502 posts

    Try placing the .htaccess file in the root of your site =)

  • #14 / Sep 14, 2007 5:06pm

    MSimos

    62 posts

    In the root of my site like httpaccess or in the root of my subdomain?

  • #15 / Sep 14, 2007 5:10pm

    Lisa Wess

    20502 posts

    In the root of your site.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases