How to change Wordpress installation from domain.com/wordpress to domain.com

Not sure how to do this without messing it all up, not a pro linux geek… Yet :smiley:

But, want to be able to install Wordpress or other pages/apps/whatever to the root of my domain, so my installation goes from www.domain. com/blog to www.domain. com but that isn´t possible according to the Yunohost app installer, since something is already there, I assume it´s the admin & user interface.

Is it possible to move that to a subfolder instead or to a different port without destroying the whole system, to like www.domain .com/yunohostadmin or as www.domain .com:port so that Wordpress or other pages opens in the main folder without /folder/index.php

Thanks in advance,

Dan

You can change your SSO login portal by :

yunohost tools maindomain -n login.domain.tld

www.domain.tld/yunohostadmin will not work if you want to install WordPress on www.domain.tld because the WordPress need all the paths to that domain Eg. www.domain.tld/somthing would give you page not found by WordPress when WordPress is installed on www.domain.tld.

Further changing the main domain name would also need that you change the DNS accordingly to have proper legitimate mails sending.

So you have two option go with YunoHost main domain change to something like yunohostadmin.domain.tld and change the DNS for settings to have legitimate SMTP.

After you install the WordPress on www.domain.tld, you will need to redirect domain.tld to www.domain.tld otherwise whoever will go to domain.tld will reach to the admin interface of YunoHost.

For this you will have to create a domain with domain.tld, install LetsEncrypt on it and go to /etc/nginx/conf.d/domain.tld.d/ and create a file redirect.conf with this in it:

 location / {


        return 301 $scheme://www.domain.tld$request_uri;

    }

This will redirect everything ondomain.tld to www.domain.tld

Hope this helps.

I’m not sure, but maybe what you are looking for is to set your wordpress as the “default app” when going to www.domain.com, i.e. redirecting automatically people going to www.domain.com to www.domain.com/blog

In that case, you can do that from the admin interface, if I’m not mistaking, going in Apps > Wordpress > Set as default.