View Single Post
  #2  
Old 18th March 2013, 22:13
almere almere is offline
ISPConfig Developer
 
Join Date: Nov 2012
Location: Netherlands, Rotterdam
Posts: 231
Thanks: 20
Thanked 39 Times in 34 Posts
Send a message via Skype™ to almere
Default

Quote:
Originally Posted by pchott View Post
How can client with ISPconfig manage redirection in nginx?

Like:
http://www.domain.com/test.php ---> http://www.domain.com/index.php
http://www.domain.com/test2.php ---> http://www.domain.com/index.php
...

something that htaccess is used at apache.

nginx Directive can only admin manage.

Thank you,
Jan
First: rewrite ^/test.php$ /index.php redirect;

Second: rewrite ^/test2.php$ /index.php redirect;

Didn't test it. But should works...
Reply With Quote