Very OT -- nginx help
Rick Stevens
ricks at alldigital.com
Wed Nov 4 21:27:08 UTC 2015
On 11/04/2015 12:51 PM, Mike Wright wrote:
> On 11/04/2015 11:59 AM, Mark Haney wrote:
>> I'm a relative newbie to Nginx, but I've got a problem that I can't
>> quite figure out. I need to redirect URLS with this:
>> /resource-library/ (ie domain.com/resource-library
>> <http://domain.com/resource-library>) to this:
>> domain.com/vif-resource-library <http://domain.com/vif-resource-library>
>> and I'm having trouble finding good examples on how to set this up in
>> nginx.
>>
>> Can someone point me in the right direction? I wouldn't have any
>> problem spending hours working on this, except I don't have the time to
>> do so. This is a known problem since Monday and I'm just now made aware
>> of it and the powers that be want it fixed now.
>
> Hi Mark,
>
> nginx has a very responsive list. The devs are always on there
You could do:
server {
listen 80;
location /resource-library/ {
rewrite ^(/.*)$ http://domain.com/vif-resourse-library$1 permanent;
}
}
That should generate a 301 (permanent) redirect. WARNING: Not tested!
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital ricks at alldigital.com -
- AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 -
- -
- A squeegee, by any other name, wouldn't sound as funny. -
----------------------------------------------------------------------
More information about the users
mailing list