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.

Issues with MSM configuration

July 30, 2007 12:14pm

Subscribe [1]
  • #1 / Jul 30, 2007 12:14pm

    dimitar.mihaylov

    35 posts

    Hello,

    I experienced an issue when I tried to create a website located on subdomain and powered by MSM. Here is the situation:

    I want to setup the website on http://name.domain.com. The path.php is correct ($site_name = “name”). My .htaccess is:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/name/$1 [L]

    The problem is that when I create an entry (e.g. http://name.domain.com/comments/42) and somebody wants to submit comment there, the form redirects to http://name.domain.com/name/comments/42. I double checked the configuration of the website in MSM, everything is just like in the documentation.

    May you give any idea how to fix this - every auto-generated from EE link has this “name” after domain.com, which breaks the pages. My EE version is 1.6.0, Build 20070708 (MSM is 1.0, the same Build).

    Thanks!

  • #2 / Jul 30, 2007 12:19pm

    Robin Sowell

    13255 posts

    Generally I’d say yank the htaccess and make sure everything works fine without it.  Then worry with the htaccess bits.  But just looking at it, your rewrite rule has the name bit in it- so try removing that:

    RewriteRule ^(.*)$ /index.php/name/$1 [L]
    
    RewriteRule ^(.*)$ /index.php/$1 [L]
  • #3 / Jul 30, 2007 3:02pm

    dimitar.mihaylov

    35 posts

    Thanks, Robin. It just doesn’t work without .htaccess, but with your advice the issue is history.

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

ExpressionEngine News!

#eecms, #events, #releases