Hi, Did not understand what was the exact problem you were offering a solution to. :)
2009/8/25 Frédéric Sidler <[email protected]> > Hello, > > I have a domain name where the www subdomain is very important. This is > very important because this is Facebook application and Facebook requires a > talk back URL. This talk back URL can be either something like > www.domain.tld or domain.tld, not both. > > So I tried to figure out what was the best practice to do it with scalr. > Here is my recipe. > > Two applications, a www.domain.tld application and a domain.tld > application. Because you want your user to be able to access your site with > domain.tld and not only with www.domain.tld > A rewrite rule and a rewrite condition for your domain.tld. You need to > activate the mod_rewrite first with this command > a2enmod rewrite > and force-reload your webserver > You can put this commands either in you Apache configuration file or in a > .htaccess at the root level of your scripts > RewriteEngine on > RewriteCond %{HTTP_HOST} ^domain\.tld$ [NC] > RewriteRule ^(.*)$ http://www.domain.tld$1 [R=301,L] > > Maybe you have an alternative to this solution. Here was mine ;-) > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "scalr-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
