aspnetcore/samples/RewriteSample/Rewrite.txt

4 lines
200 B
Plaintext

# Rewrite path with additional sub directory
RewriteCond %{HTTP_HOST} !^www\.example\.com [NC,OR]
RewriteCond %{SERVER_PORT} !^5000$
RewriteRule ^/(.*) http://www.example.com/$1 [L,R=302]