Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
550 views
by Rookie
I need to redirect sub.domain.com to domain.com/url and tried using -redirection. I am not having any luck with it.

I have cleared Webinoly's cache and checked other browsers (per comments on other threads here) and I'm getting 403 errors.

When I select the redirect path should it be /root/www/sub.domain.com/ or something else? I've tried a few different paths ie /www/sub.domain.com/htdocs/ and even /../htdocs/index.html.

Thanks!

1 Answer

0 votes
by Rookie
It seems that what you need to do is Domain Forwarding, such as "sudo site example.com -forward=example.org". Check domain forwarding at https://webinoly.com/en/documentation/sites/

If you need to use the Redirection Manager, then check the examples for that section also at https://webinoly.com/en/documentation/sites/ You never use filesystem paths, you need to use URLs (absolute or relative).
by Rookie
Derp. Thank you! I was trying to use the redirection commands. Forwarding worked perfectly.

I appreciate you guys!
by Rookie
Please vote for the answer so the question is listed as answered.
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...