Welcome! Log In Create A New Profile

Advanced

simple redirects from one directory to another?

Posted by tunist 
simple redirects from one directory to another?
July 19, 2013 02:21PM
greetings!
I am configuring an elgg social network (www.elgg.org) and have a working nginx config file that already includes several rewrites.

i now have desire to route all traffic that was going to one directory to another.. from /video/ to /videolist/

i have used various formats/syntax for the rewrite - including a location statement inside the main site's server declaration..
yet at no point has anything i have added made any difference to what happens when i visit the target url in a browser (i am restarting nginx after each change).

here are some examples of the strings i have used and that did nothing:

rewrite ^/video/(.*)$ /videolist/$1 last;
rewrite ^/video/*$ /videolist/$1 permanent;

i also placed these inside a location /video/ block.. and that made no difference..

is anyone aware of what i am missing here?
thanks
Re: simple redirects from one directory to another?
July 19, 2013 03:51PM
here's the config i am using presently, there are many rewrites in there already for other purposes (which were not writtten by me)..
the /videos/ one is the particular one that i am speaking of.

http://p.ngx.cc/30
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 233
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready