XF 1.5 moving from domain to sub-domain

iorG19

Member
Hi,

I want to move my community from
Code:
mydomain.com
to
Code:
mydomain.other-domain.net
Keeping redirrect rules in existing domain.com to redirrect to the new sub-domain.

I already download all files from existing domain and i upload them to the newest sub-domain. What's next ?
 

iorG19

Member
i let this in the .htaccess in the domain* (old):
PHP:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    # Redirecciona un dominio completo a la raíz de otro dominio 
    RedirectMatch 301 ^(.*)$ http://escritoriobase.ior-g.net
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>

and i have this in my .htaccess in sub-domain* (new):
PHP:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www.escritoriobase.ior-g.net [NC]
    RewriteRule (.*) http://escritoriobase.ior-g.net/$1 [R=301,L,QSA]
    RewriteBase /

    #    This line may be needed to enable WebDAV editing with PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>

* - same web server. so i don't make any changes to database or /library/config.php
 

Brogan

XenForo moderator
Staff member
The rewrite rules will have to be in place where the requests are going to hit - so they can be redirected to the correct URL.
 

iorG19

Member
The rewrite rules will have to be in place where the requests are going to hit - so they can be redirected to the correct URL.
so... i have right my .htacess ? (before i proceed to delete all files in existing (old) domain, keeping only .htaccess)
 
Top