XF 1.5 Trying to set a test board

Elizabeth

Well-known member
I have a domain I use for testing and make the board password protected since it isn't the domain in my license.

Live site is abc.org Test board is xyz.net
Okay, copied over the live board after temporarily taking it offline and changing the board url in the ACP/Options/Board Information to xyz.net. Then copied it.

But every time I try to go to the site, it automatically redirects me to the live board. SOMETHING in the file is doing that. Any clues? If I hover over the admin.php, it shows abc.org even while located on xyz.net

I've gone round and round in circles. I prefer not to actually use abc.org cause I am afraid I would change something on the live board and I am trying to get it ready for going from 1.5X to 2.0X. I have a boatload of extra files, I need to do a comparison of unused add ons and get them off my ftp.

I've searched here and the only part I've seen is the ACP>Options>Basic Board Information area. Help.
 
Last edited:
I found this using WinScp to find hidden files:

Code:
#Redirect HTTP to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default

<IfModule mod_rewrite.c>
    RewriteEngine On

RewriteCond %{HTTP_HOST} !^abc\.org
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ http://abc.org/$1 [L,R=301]

    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
    # RewriteBase /xenforo

    #    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
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule ^.*$ - [NC,L]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php72†package as the default “PHP†programming language.
<IfModule mime_module>
  AddType application/x-httpd-ea-php72 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
This was created using the cpanel on abc.org and was a direct copy over as part of the abc.org/forum that I am wanted to test on.

Can I just change that part highlighted in red to go to xyz.net?
 
Okay, it's no longer redirecting but now it's hung up.

Question. right now I have two databases on xyz.net
One is the current copy of abc.org
The other is a clean install of xyz.net

If I import the files from xyz/abc (minus the .htaccess of the copied abc.org above) into the database of xyz clean install, should it work?
I will delete the current ONE user on the clean install since I am user #1 on both. Never mind, I saw this: https://xenforo.com/community/threads/best-way-upgrade-or-import.158151/
 
Last edited:
Top Bottom