Hello experts, I have a rails project at http://domain.com I would like to install typo at http://domain.com/blog Is this possible? I have gotten it installed and using mod_rewrite I can get to the home page. My mod_rewrite takes everything after blog/ in the url and passes it to typo. The issue I am having is that all Typo assets are relative and they use link like: /stylesheets/theme/local.css Is there a convenient way that I can force Typo (or other ROR projects) to use /blog/stylesheets/theme/local.css Any tips/ pointers are appreciated. Thanks Frank Rails Blog: http://railsruby.blogspot.com MySQL Blog: http://mysqldatabaseadministration.blogspot.com Linux / Security Blog: http://frankmash.blogspot.com --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060301/9e92f33d/attachment.html
On 3/1/06, softwareengineer 99 <softwareengineer99@yahoo.com> wrote:> > Hello experts, > > I have a rails project at http://domain.com > > I would like to install typo at http://domain.com/blog > > Is this possible? > > I have gotten it installed and using mod_rewrite I can get to the home page. > > My mod_rewrite takes everything after blog/ in the url and passes it to typo. > > The issue I am having is that all Typo assets are relative and they use link like: > > /stylesheets/theme/local.css > > Is there a convenient way that I can force Typo (or other ROR projects) to use > /blog/stylesheets/theme/local.css > > Any tips/ pointers are appreciated. > >Look in public/.htaccess for Typo; there should be a ''RewriteBase /blog/'' line. Uncomment it, and everything should work. Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060301/332b7853/attachment.html