Forum Discussion
.htaccess to Nginx rules
- Nov 28, 2022
You will need to use something like this:
rewrite regex replacement-url [flag];
Here are some examples:
https://www.digitalocean.com/community/tutorials/nginx-rewrite-url-rules
https://www.nginx.com/blog/creating-nginx-rewrite-rules/
for:
RewriteCond %{REQUEST_URI} ^(.+)\~s$ RewriteRule ^(.*) /stats.php?url=$1 [L]could look like this:
rewrite ^(.+)\~s$ ^(.*)\/stats.php?url=$1 break;
Hy Razzera, I made mihaic 's post the Accepted Solution - please let me know if it didn't actually solve your issue and i"ll revoke that status. Otherwise, I'll keep it there to make it easy for future users with the same issue to find the answer.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
