I'm new here and I need some help.
Recently I made a landing page using Wordpress, in a subdomain of a site.
The main site is: www.hugobeauty.com.br The landing page is: www.hugobeauty.com.br/etereo
The client wants to use the landing page as the main domain for 2 months, and the solution I found was using this in htaccess:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?hugobeauty.com.br$
RewriteCond %{REQUEST_URI} !^/etereo/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /etereo/$1
RewriteCond %{HTTP_HOST} ^(www.)?hugobeauty.com.br$
RewriteRule ^(/)?$ etereo/ [L]
At the same time, people can go back from the landing page, to the previous site, so they land here: http://www.hugobeauty.com.br/index.php (this is the button "voltar ao site principal" that you'll find in the landing page, that means "go back to main site".
But the previous homepage uses redirects in the menu. If you go here http://www.hugobeauty.com.br/index.php and try to click "profissionais", at the menu, for example, it won't work because of the new redirect.
THe previous htaccess was like this:
AddType text/x-component .htc
#--#php_flag magic_quotes_gpc On
RewriteEngine On
rewritecond %{http_host} ^hugobeauty.com.br [NC]
rewriterule ^(.*)$ http://www.hugobeauty.com.br/$1 [r=301,NC]
RewriteRule ^cms\/?$ /cms/index.php [R]
RewriteRule ^([A-za-z-0-9]+)?\/?$ /index.php?p=$1
RewriteRule ^([A-za-z-0-9]+)?\/?([0-9]+)*\/?$ /index.php?p=$1&id=$2
RewriteRule ^([A-za-z-0-9]+)?\/?([0-9]+)*\/?([0-9]+)*\/?$ /index.php?p=$1&id=$2&pg=$3
RewriteRule ^([A-za-z-0-9]+)?\/?([0-9]+)*\/?([A-za-z-0-9]+)*\/?$ /index.php?p=$1&id=$2&pg=$3
RewriteRule ^([A-za-z-0-9]+)?\/?([A-za-z-0-9]+)*\/?$ /index.php?p=$1&args[]=$2
# 404
ErrorDocument 404 /404
Is there anyway that I can redirect the main domain, to the sub, without messing up with menu links in here: http://www.hugobeauty.com.br/index.php ?