Skip to content

Commit

Permalink
mm
Browse files Browse the repository at this point in the history
  • Loading branch information
joevaugh4n committed Aug 4, 2024
1 parent fcf6948 commit 00baf1b
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Redirect all requests from admin subdomain to main domain
[[redirects]]
from = "https://admin.adamkoszary.co.uk/*"
to = "https://adamkoszary.co.uk/:splat"
status = 200
force = true

# WordPress-specific redirects
[[redirects]]
from = "/wp-admin/*"
to = "https://adamkoszary.co.uk/wp-admin/:splat"
Expand Down Expand Up @@ -26,4 +34,17 @@
from = "/wp-login.php"
to = "https://adamkoszary.co.uk/wp-login.php"
status = 200
force = true
force = true

# Catch-all redirect for any WordPress requests not caught above
[[redirects]]
from = "/wp-*"
to = "https://adamkoszary.co.uk/:splat"
status = 200
force = true

# Serve your Netlify site for all other requests
[[redirects]]
from = "/*"
to = "/index.html"
status = 200

0 comments on commit 00baf1b

Please sign in to comment.