Ruby on Rails
HowToUseRailsWithAliasedURLs

WikiGardening in progress. We’re combining/reorganizing several related howto’s at the moment, apologies for the dust. As a first stage, we are gathering all the related questions and their answers in one place and this is the place.

I installed rails under an alias in my apache installation:


Alias /booking "/var/www/booking/public" <Directory /var/www/booking/public/> Options ExecCGI FollowSymLinks AllowOverride all Allow from all Order allow,deny


This made the default RewriteXXX?’s in public/.htaccess go haywire.

The easy solution to this problem was to add a RewriteBase to the .htaccess:


RewriteBase /booking

This seems to make everything work like intended.
—MartinKihlgren

Source pages (from which material is still being collected)