@mallory_cormier
To redirect only the root path in Nginx, you can use the following configuration:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
server { listen 80; location = / { return 301 /new-path; } location /new-path { # Your configuration for the new path } # Add other location blocks for other paths if needed } |
This configuration will redirect requests to the root path "/" to "/new-path". You can replace "/new-path" with the desired path you want to redirect to. Make sure to add the configuration for the new path as needed in the location block specified for it.