This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| programmieren:wordpress:configphp_domains [2021/05/03 19:17] – created jgehrke | programmieren:wordpress:configphp_domains [2022/12/17 12:28] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Wordpress auf mehrere Domains hören lassen per config.php ====== | ====== Wordpress auf mehrere Domains hören lassen per config.php ====== | ||
| + | |||
| + | Wenn man möchte, dass ein und das selbe Wordpress auf mehre Domains reagiert (kein Multisite, sondern gleicher Inhalt), dann können Domains in der '' | ||
| + | |||
| + | **Wichtig: | ||
| <code php> | <code php> | ||
| Line 8: | Line 12: | ||
| /* DEUTSCHLAND */ | /* DEUTSCHLAND */ | ||
| case ' | case ' | ||
| - | $success_msg | ||
| $website_url | $website_url | ||
| $website_path = '/ | $website_path = '/ | ||
| Line 15: | Line 18: | ||
| /* ÖSTERREICH */ | /* ÖSTERREICH */ | ||
| case ' | case ' | ||
| - | $success_msg | ||
| $website_url | $website_url | ||
| $website_path = '/'; | $website_path = '/'; | ||
| Line 27: | Line 29: | ||
| } | } | ||
| - | define( ' | ||
| define( ' | define( ' | ||
| define( ' | define( ' | ||