Redirect?

Jonathan nginx at 2xlp.com
Wed Oct 25 05:04:38 MSD 2006


On Oct 24, 2006, at 8:59 PM, Ezra Zygmuntowicz wrote:

> Hi there-
>
> 	What is the easiest way to setup a certain domain to do a  
> permanent redirect in the config file? So if a request comes in to:
>
> www.example.co.uk
>
> and I want it to redirect to
>
> www.example.com

i do this

-----------------------------

server {
         listen 80;
         server_name
                 findmeon.net
                 www.findmeon.net
                 ;
       	rewrite ^.*$ http://findmeon.com;
}

-----------------------------

// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -
| FindMeOn.com - The cure for Multiple Web Personality Disorder
| Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -
| RoadSound.com - Tools For Bands, Stuff For Fans
| Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -







More information about the nginx mailing list