caddyserver / caddy

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
https://caddyserver.com
Apache License 2.0
56.97k stars 3.99k forks source link

[Help / Question] - How to convert rewrite cond like this into caddy2 configuration #5620

Closed makanSukros closed 1 year ago

makanSukros commented 1 year ago

RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^.]+)$ $1.php [NC,L]

RewriteRule ^admin/create create.php [L] RewriteRule ^lists/(.)$ contacts.php?slug=$1 [QSA] RewriteRule ^apps/settings/(.)$ apps_settings.php?slug=$1 [QSA]

Thanks for advance

mohammed90 commented 1 year ago

Thanks for your question, and we're thrilled that you're using Caddy! This looks more like a question about how to use Caddy rather than a bug report or feature request. Since this issue tracker is reserved for actionable development items, I'm going to close this, but we have a community forum where more people will be exposed to your question, including people who may be more expert or experienced with the specific question you're facing. I hope you'll ask your question there, and thanks for understanding!

makanSukros commented 1 year ago

Okay @mohammed90 , I have made a post regarding the issue here

https://caddy.community/t/how-to-convert-rewrite-cond-like-this-into-caddy2-configuration/20727