Posts Tagged ‘htaccess’

|

Rewrites in rails

How to do a rewrite rule in rails .htaccess to disallow rails in certain subfolders (for example, you might want to run a php forum software under /public/forum)

Mainly, you can just edit the .htaccess file in your rails app under public/.htaccess. Inside there is a short explanation and example of how to do this.

For example,

RewriteCond %{REQUEST_URI} ^/forum.*   RewriteRule .* - [L]

Helpful link Hosting rails helpful link

|