コンテキストの限界を突破する
コンテキストの限界を突破する —— 「読む」AIから、「文脈を創る」AIへの進化 ...
Z. Xingjie
2026年02月27日
As your WordPress site grows in traffic and complexity, managing the admin panel separately from the main site can improve security and performance. One way to achieve this is by hosting your WordPress admin panel on a subdomain (e.g., admin.xyz.com) while keeping the main site (e.g., www.xyz.com) on a different server. In this post, we’ll walk you through the steps to set this up.
Before diving into the how let’s quickly cover the why. Separating your WordPress admin panel offers several benefits:
First, you need to create a subdomain for your admin panel.
admin.xyz.com. Point it to the IP address of the server where you plan to host the WordPress admin panel.Next, copy your existing WordPress installation to the new server.
www.xyz.com) to the subdomain (admin.xyz.com). You can do this via FTP/SFTP or a direct server-to-server transfer.wp-config.php file from the main site to the admin subdomain and ensure it’s correctly configured to connect to the same database.wp-config.php for the SubdomainTo ensure the subdomain functions correctly as your admin panel, modify the wp-config.php file on the new server.
define('WP_HOME', 'https://www.xyz.com');define('WP_SITEURL', 'https://admin.xyz.com'); admin.xyz.com while keeping the public site at www.xyz.comdefine('COOKIE_DOMAIN', 'xyz.com');define('ADMIN_COOKIE_PATH', '/');define('COOKIEPATH', '/');define('SITECOOKIEPATH', '/');Now, you need to ensure that users attempting to access the admin panel from the main site are redirected to the subdomain.
Redirect Admin Access: On the main site server, edit the .htaccess file (if using Apache) or the server configuration (if using Nginx) to redirect all /wp-admin and /wp-login.php requests to admin.xyz.com.Example .htaccess rulesRewriteEngine On RewriteCond %{REQUEST_URI} ^/wp-adminRewriteRule ^(.*)$ https://admin.xyz.com/wp-admin/$1 [R=301,L]RewriteCond %{REQUEST_URI} ^/wp-login.phpRewriteRule ^(.*)$ https://admin.xyz.com/wp-login.php [R=301,L]
With the basic setup complete, it’s time to think about security.
admin.xyz.com is secured with an SSL certificate. This is crucial for protecting login credentials and admin activities.Finally, it’s time to test everything.
admin.xyz.com/wp-admin and ensure you can log in and manage your site as usual.www.xyz.com/wp-admin and www.xyz.com/wp-login.php to ensure they redirect to the subdomain.By following these steps, you can effectively separate your WordPress admin panel from the main site, hosting it on a subdomain and potentially on a different server. This setup can improve security, performance, and scalability, making it an excellent choice for larger or more complex WordPress installations.
Do you have any other WordPress optimization tips? E-mail me at eather@export-japan.co.jp
コンテキストの限界を突破する —— 「読む」AIから、「文脈を創る」AIへの進化 ...
Z. Xingjie
2026年02月27日
本記事は、英語で公開されている弊社ブログ記事の日本語翻訳版です。
英語元記事:Implement Basic AUth using lambda function for S3 Website Hosting
Muntasir Ahmed MUFTI
2026年02月06日
AIによる認知能力低下? —— MITの研究結果とこれからのエンジニアリング ...
Z. Xingjie
2026年02月02日