I have a www.dominio.com.br
domain that points to my server and is redirected via .htaccess
to the www.dominio.com.br/novo
subfolder through the following code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?dominio\.com\.br$
RewriteRule ^(.*)$ http://www.dominio.pro.br/novo/$1 [P]
What keeps the URL as www.dominio.com.br
. Perfect, until I access some link on my page, then the URL changes to www.dominio.com.br/novo/contato/
, for example. The code in file .htaccess
in subfolder /novo
is as follows:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /novo/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /novo/index.php [L]
</IfModule>
I believe that changing this code or some configuration in WordPress will solve these problems, but after some frustrating attempts, I did not succeed.
How to solve?