search for: soccertackle

Displaying 1 result from an estimated 1 matches for "soccertackle".

2007 Oct 16
1
redirects with mongrel (dropping the www. from a url)
...ll, I have a rails app running on an apache virtual host with mongrel that i want to set up a redirect from www.someapp.com to someapp.com (dropping the www.) I have tried doing this in apache using a rewrite rule (below) which worked before when the app was written in php. Redirect http://www.soccertackle.com/ http://soccertackle.com RewriteEngine on RewriteCond %{HTTP_HOST} !^soccertackle\.com [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^/(.*) http://soccertackle.com/$1 [L,R] Now the app has been completely re written in rails using mongrel & apache (i don''...