• 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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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 doesn’t happen for me: the URL in the browser remains at the root the homepage loads fine for me.

    Have you resolved this already?

    Thread Starter bartekrey

    (@bartekrey)

    No, I have not! I just checked with all available devices to me, although on the same network and cleared cookies and cached data on my browser and the behavior continues.
    But great to see that it works for you, I wonder why…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Homepage redirects to a subpage’ is closed to new replies.