I am trying to place a wordpress installation to a folder, instead of having it in the root of the domain. I make the migration without problem from mydomain.com to mydomain.com/folder The problem I have to point the domain to the folder for the user to access from mydomain.com, the front has no problem, but when accessing the backoffice method user and password, when sending, refresaca and clean the form without giving error message or anything like that.
The process has been: Migrate the installation to a folder and check that everything worked ok. Place a .htaccess file in the root with the following code
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?midominio.com$
RewriteCond %{REQUEST_URI} !^/carpeta/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /carpeta/$1
RewriteCond %{HTTP_HOST} ^(www.)?midominio.com$
RewriteRule ^(/)?$carpeta/index.php [L]
So in the root I have the .htaccess and the folder with the wordpress installation.
I do not know if I should do more configurations and / or where
Thanks in advance