[Rails] Typo in a sub directory

Scott Laird scott at sigkill.org
Wed Mar 1 18:59:21 GMT 2006


On 3/1/06, softwareengineer 99 <softwareengineer99 at 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


More information about the Rails mailing list