Homepage redirects to a subpage
-
Hello,
I’ve had a Angular website running on my website, with headless wordpress installed in a directory /wordpress. We developed a new page with Elementor in pure wordpress, and I wanted to move wordpress to the root directory, so that the new Elementor website would be accessible from our root domain. I’ve moved all the files on our hosting, it was messy and in the end everything works almost as intended, however our hosting provider instruct us to give the actual website url in the WordPress settings and then provide the wordpress catalogue in the hosting settings.
The website works. WordPress files are still in the subdirectory and that’s okay. However, every time you enter the address for the root domain, or the home page /home, the website redirects you to /wordpress, a page that doesn’t exist. This behaviour occurs with whatever page I specify as homepage. To counter it, I created a page called specifically “wordpress”, so now it shows our intended homepage, however this is not a nice clean solution that I want.
My .htaccess file looks like this:
RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
My wp-config.php doesn’t have home page defined explicitly, I also checked our database, and there homepage points to the root domain.
Anyone has any idea what is happening?The page I need help with: [log in to see the link]
- The topic ‘Homepage redirects to a subpage’ is closed to new replies.