htaccess redirect creates issues for BeBuilder?
Greetings!
My site : https://bluepegpinkpeg.com
This is a refresh of an old site. The old site resides in /public_html/
I developed the new site (seen) in a subdirectory /public_html/wp22/
BeBuilder works great until I added the following to my htaccess to make /wp22 the primary site.
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?bluepegpinkpeg.com$ RewriteCond %{REQUEST_URI} !^/wp22/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /wp22/$1 RewriteCond %{HTTP_HOST} ^(www.)?bluepegpinkpeg.com$ RewriteRule ^(/)?$ wp22/index.php [L] </IfModule> # END WordPress# BEGIN WordPress
Upon adding the above to my htaccess, BeBuilder begins to display strangely. The page-builder UI is reduced to plain text items that I can't seem to interact with.
I assume that something with the above htaccess is breaking BeBuilder, as I can remove the the new rule and everything works as expected.
Is there something in my rules that is breaking BeBuilder? Did I do something incorrect? Is this a known issue? Is there a better way to go about making the new site the primary (without physically moving it to root)?
Thanks so much for the help!
Brandon
Comments
Hi,
Indeed your changes are breaking the BeBuilder functionality.
Instead, I suggest creating a subdomain as it does not count to the registration limit (as long as the main domain is registered with the same license key and was registered first) or creating a staging domain. You can read more about the staging domain here: https://support.muffingroup.com/how-to/how-to-set-up-betheme-staging-site/.
For creating a copy we suggest using the Duplicator plugin.
https://wordpress.org/plugins/duplicator/
Best regards