Why is my WordPress site accessible at a subfolder (e.g., /wordpress/)?
Последна промяна: 15.10.2025 09:03
If WordPress is installed in a subfolder, it’s accessible at http://example.com/wordpress/. To use the root domain, follow these options:
- Redirect to Subfolder: Copy index.php from /wordpress/ to the root and modify the require line to:
require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' );
- Reinstall in Root: Use the Application Installer, leaving the "In directory" field empty.
- Move Site: Follow https://wordpress.org/support/article/moving-wordpress/#moving-directories-on-your-existing-server.