forcing domain -> www.domain

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

forcing domain -> www.domain

sergio_101-2
anyone have any ideas on how i might go about forcing

domain.com

to

www.domain.com

with pier?

i usually do it with .htaccess, but it's doesn't work in this case....

ideas?

thanks!

--
----
peace,
sergio
photographer, journalist, visionary

http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: forcing domain -> www.domain

Lukas Renggli
I am using the following rewrite rules:

  # fix hostname
  RewriteCond %{HTTP_HOST} !^www\.lukas-renggli\.ch [nocase]
  RewriteCond %{HTTP_HOST} !^$
  RewriteRule ^/(.*) http://www.lukas-renggli.ch/$1 [redirect,last]

Lukas

On 5 May 2011 06:58, sergio_101 <[hidden email]> wrote:

> anyone have any ideas on how i might go about forcing
>
> domain.com
>
> to
>
> www.domain.com
>
> with pier?
>
> i usually do it with .htaccess, but it's doesn't work in this case....
>
> ideas?
>
> thanks!
>
> --
> ----
> peace,
> sergio
> photographer, journalist, visionary
>
> http://www.CodingForHire.com
> http://www.coffee-black.com
> http://www.painlessfrugality.com
> http://www.twitter.com/sergio_101
> http://www.facebook.com/sergio101
> _______________________________________________
> Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
>



--
Lukas Renggli
www.lukas-renggli.ch
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki