hi all, thanks for the help, unfortunately im still sort of running into small troubles...i created a subdomain so now i have a folder titled 'kitchen' in my main public_html folder. i went into my mephisto folder that is titled mephistok (dont ask) and started the console and created the second site by typing s = Site.create(:host => "kitchen.mydomain.com", :title => "My Blog"). next i went into /kitchen and created the .htaccess file with the following
RewriteEngine On
# Don't redirect /admin*. Send it directly to rails.
RewriteCond %{REQUEST_URI} ^/admin.*
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
# Basic content redirection
RewriteRule ^$ /cache/%{HTTP_HOST}/index.html [QSA,L]
RewriteCond %{REQUEST_URI} !.*/mephistok/.*
RewriteRule ^([^.]+)$ /cache/%{HTTP_HOST}/$1.html [QSA,L]
# asset redirection
RewriteCond %{REQUEST_FILENAME} /assets/.*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(assets)(.*)$ /assets/%{HTTP_HOST}/$2 [QSA,L]
# other redirection (imgs, js, css, ...)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !.*/mephistok/.*
RewriteCond %{REQUEST_URI} !.*html
RewriteCond %{REQUEST_URI} !^/cache
RewriteRule ^(.*)$ /cache/%{HTTP_HOST}/$1 [QSA,L]
# Everything else goes to rails...
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
good news is that im getting the
"Application error Rails application failed to start properly"
there is no need for a symlink someplace? or how does mephisto know that kitchen.myblog.com belongs to my mephistok directory and not a regular subdomain>
thanks for any help!
2007-03-28 07:54 PM