I was able to figure out that because Lightsail uses a Bitnami deployment of WordPress, Bitnami overrides the .htaccess
file.
Instead you have to update the /opt/bitnami/apache2/conf/httpd.conf
file by adding the following content:
<IfModule headers_module>
<IfVersion >= 2.4.7 >
Header always setifempty X-Frame-Options ALLOW-FROM https://*.example.com
</IfVersion>
<IfVersion < 2.4.7 >
Header always merge X-Frame-Options ALLOW-FROM https://*example.com
</IfVersion>
</IfModule>
Reference:
https://docs.bitnami.com/bch/apps/livehelperchat/configuration/enable-framing/
Related Posts:
- “Too many redirects” ONLY when trying to access wp-admin page
- Use a different domain for SSL
- .htaccess in wp-admin produces a redirect loop
- Change Login URL Without Plugin
- Make fonts.com font work in TinyMCE (iframe referrer issue)
- Securing wp-admin folder – Purpose? Importance?
- Wrong canonical link on wp-admin pages
- Upgrade to SSL Breaks Admin Dashboard
- WordPress in sub directory wp-admin problem
- Options for restricting access to wp-admin
- .htaccess rewrite rule for removing .php extension with exception of wp login and wp-admin
- Remove HTTP: from the site URL and just keep // in it
- Can’t access admin dashboard with wp-admin without /index.php after it
- How to change “wp-admin” to something else without search-replacing the core?
- Why should I password protect WP-Admin?
- Embed WordPress Admin in an iframe
- Call to undefined function insert_with_markers
- Block access to wp-admin
- Cannot log into WordPress Dashboard after removing/adding .htaccess
- Should I add the IP of the server that hosts my sites to the list of authorized IPs in the wp-admin/.htaccess?
- SSL Partially breaking admin panel and elementor
- CDN + WP Admin Query – .htaccess redirection
- From 403 error to 500 internal server error
- Cannot Access Admin Area After Migration
- Wrong wp-admin URL
- Can’t login to Dashboard when changing site URL to HTTPS
- Cannot find an OLD Gravity Form on an OLD Word Press site [closed]
- How do I host WordPress on a hidden domain through a reverse proxy?
- How to Change The WordPress Login URL Without Plugin
- 404 redirect wp-login and wp-admin after changing login url [closed]
- Too many redirects after added SSL redirect on port 80 virtual host
- How login is possible, if I deny login page via .htaccess with allow ip
- Redirect an entire WordPress site on a subdomain, except wp-admin
- Admin sometimes redirects to HTTPS
- Blank page when viewing wp-admin
- Can’t access wp-admin after http to https change
- wp-admin going directly to 404
- WordPress /wp-admin redirect to wrong port in docker
- Can’t access WP-Admin via HTTPS
- mixed contents admin panel is Unsecured
- wp-admin and wp-login.php not Accessible after Cloudflare
- Disabling WP-Admin Caching in htaccess
- Random HTTPs redirections at admin area in shared hosting
- Mixed content and expired session issues with SSL and wp-admin
- Limit access to wp-admin but still be able to log in from different locations?
- SSL doesn’t deliver parts of WordPress Administration Module
- Making WP Admin Folder accessable JUST under a different link
- ‘Too many redirects’ error after changing site URL in WordPress [closed]
- Couple questions about .htaccess, login page, updates
- Https Website: CSS and JS files load in http and admin page does not load too
- Wildcard multisite wp-admin url wrongfully redirected
- How to redirect all HTTP requests to HTTPS
- How do I hide related videos at the end of a YouTube playlist embed code?
- Mixed Content Page: requested an insecure stylesheet error
- Https to http redirect using htaccess
- Organizing Code in your WordPress Theme's functions.php File?
- How to check if a user is in a specific role?
- Can I rename the wp-admin folder?
- How do I Enqueue styles/scripts on Certain /wp-admin Pages?
- Changing Admin Menu Labels
- Adding custom columns to custom post types
- Adding Fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?
- adding custom stylesheet to wp-admin
- Can’t change language (only “English (United States)”)
- Is there ANY way to remove comments function and section totally?
- How to use “menu_order” field for posts?
- How to restrict dashboard access to Admins only?
- Admin Page Redirect
- Disable dragging of meta boxes?
- Setting $_SERVER[‘HTTPS’]=’on’ prevents access to wp-admin
- Toggle admin metabox based upon chosen page template
- Unable to login and wp-login.php redirects to wp-admin%2F&reauth=1?
- When moving a WP site, why does wp-admin redirect to old site?
- How to disable the “Post Lock/Edit Lock”?
- adding the category to the admin column for a custom post type?
- How can we make managing lots of pages in WordPress Admin better?
- Change page title in admin area
- do_shortcode() within Admin Page
- How can I control the position in the admin menu of items added by plugins?
- Changing the ‘wp-admin’ URL to whatever I want
- Unit testing in the WordPress backend (is_admin() is true)
- Admin ajax request return 0 with die()
- How to prevent access to wp-admin for certain user roles?
- How to remove screen options and help links in the admin area?
- How to remove the core embed blocks in WordPress 5.6?
- How to increase the file size limit for media uploads?
- Create WP tutorial for users with admin pointer using next button for navigation
- I’m getting a 404 message when I try to access wpadmin
- Taxonomy dropdown metabox in the back-end
- wordpress wp-admin css not loading
- Sort admin menu items
- How to order by post meta name in wp admin?
- How set defaults on wpLink()
- Remove dashboard, use Pages tab as default
- How to redirect/rewrite all /wp-login requests
- Show all post tags on post edit screen/sidebox
- How to hook in and modify the new revisions UI (3.6+)?
- How to display a static HTML page while setting up a WordPress site?
- Limit widget to certain sidebar?
- How can I uninstall a language?