WP Ghost works on Amazon AWS Lightsail (Bitnami WordPress) with extra Apache configuration. Bitnami WordPress on Lightsail uses a non-standard Apache setup: it sets AllowOverride None by default and uses htaccess.conf files instead of .htaccess. WP Ghost needs rewrite rules to function, so you need to either enable AllowOverride All (so WP Ghost can write to .htaccess normally) or add the rewrite rules directly to Bitnami’s config file. This guide covers both options.
Bitnami WordPress stacks on AWS Lightsail use a custom Apache configuration. Unlike standard Apache setups, Bitnami disables .htaccess processing by default (AllowOverride None) for performance reasons. Instead, Bitnami uses its own htaccess.conf files. The WordPress-specific config is at /opt/bitnami/apps/wordpress/conf/httpd-app.conf (legacy layout) or within the Bitnami Apache config directory (newer layout). You need to either enable standard .htaccess support or add WP Ghost’s rewrite rules directly to Bitnami’s config file. For more details on Bitnami’s approach, see the Bitnami .htaccess documentation.
The simplest approach is to enable AllowOverride All so WP Ghost can write to .htaccess automatically, just like a standard Apache server. This also enables WordPress permalink support and compatibility with other plugins that use .htaccess.
sudo nano /opt/bitnami/apps/wordpress/conf/httpd-app.conf <Directory> block and change AllowOverride None to AllowOverride All:<Directory "/opt/bitnami/apps/wordpress/htdocs">
Options +MultiViews +FollowSymLinks
AllowOverride All
<IfDefine USE_PHP_FPM>
<FilesMatch \.php>
SetHandler "proxy:fcgi://wordpress-fpm/"
</FilesMatch>
</IfDefine>
</Directory> Newer Bitnami layout: If the file path above doesn’t exist, your Lightsail instance may use the newer Bitnami layout. Try /opt/bitnami/apache/conf/vhosts/htaccess/wordpress-htaccess.conf instead. Check the Bitnami documentation for your specific stack version.
If you prefer to keep AllowOverride None for performance reasons, you can add WP Ghost’s rewrite rules directly to the Bitnami config file instead of using .htaccess.
sudo nano /opt/bitnami/apps/wordpress/conf/httpd-app.conf <Directory> block, before the existing WordPress rewrite rules (the RewriteBase / RewriteRule block).Option B requires manual updates. If you use Option B, you need to update the rewrite rules in httpd-app.conf every time you change paths in WP Ghost. With Option A, WP Ghost writes to .htaccess automatically. Option A is recommended unless you have a specific reason to keep AllowOverride None.
After completing either Option A or Option B, restart Apache and test:
sudo /opt/bitnami/ctlscript.sh restart apache .htaccess automatically.Bitnami has changed its directory layout over time. If /opt/bitnami/apps/wordpress/conf/httpd-app.conf doesn’t exist, try /opt/bitnami/apache/conf/vhosts/htaccess/wordpress-htaccess.conf or run find /opt/bitnami -name "httpd-app.conf" to locate the file. Check the Bitnami documentation for your stack version.
If you used Option A, verify AllowOverride All is set in the correct <Directory> block and that a .htaccess file exists in the WordPress root with WP Ghost’s rewrite rules. If you used Option B, verify the rewrite rules are placed before the WordPress rewrite rules in the config file, not after.
Syntax error in the config file. Run sudo /opt/bitnami/ctlscript.sh status apache to check the status, and sudo apachectl configtest to find the specific error. Fix the issue and restart again.
SSH into your Lightsail instance and either fix the config or use the Safe URL parameter to bypass WP Ghost temporarily. If that doesn’t work, see the Emergency Disable guide.
Option A (AllowOverride All) is recommended for most users. It lets WP Ghost write to .htaccess automatically, which means path changes take effect immediately without SSH access. Option B is for administrators who want to keep AllowOverride None for performance and are comfortable editing server config files every time they change WP Ghost paths.
Bitnami has updated its directory structure over time. Older stacks use /opt/bitnami/apps/wordpress/, newer stacks use /opt/bitnami/wordpress/ or /opt/bitnami/apache/conf/vhosts/. The Bitnami documentation has the current paths for each layout version.
Only if you used Option B. With Option A (AllowOverride All), WP Ghost writes to .htaccess automatically and you just need to restart Apache after path changes. With Option B, you need to SSH in, update the config file, and restart Apache every time you change paths.
No. WP Ghost writes rewrite rules to .htaccess (Option A) or you add them manually to the Bitnami config (Option B). No core files are modified. Deactivating WP Ghost restores all defaults instantly.
Apache and cloud server configuration:
Replace the default wp_ database prefix with a random one to protect against SQL injection…
Change the WordPress uploads directory path with WP Ghost (rewrite rules, no files moved) or…
Configure WP Ghost with WP Rocket cache. Enable file optimization, Change Paths in Cache Files.…
https://youtu.be/6ylhojSi-_E In this video, we’ll explore why website security matters and what can happen if…
The security of your WordPress site depends on multiple factors, such as the strength of…
Step-by-step guides to connect WP Ghost 2FA with Google Authenticator, Authy, Microsoft Authenticator, or LastPass.…