Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress Reply To: Run copy of oryginal WordPress on Subdomain

Discussion in 'Misc WordPress Requests' started by amigo2017, Oct 24, 2017.

  1. amigo2017

    Guest

    Reply To: Run copy of oryginal WordPress on Subdomain, by amigo2017

    Hi,
    Thank for the response.
    So,
    1) Right, I’ve copied all WordPress files to ftp:/subdomains/upgrade/
    2) No, I’ve changed only “wp_options” -> siteurl from http://www.MY123SITE.com/MY123SITE to http://upgrade.MY123SITE.com in phpMyAdmin.
    I’ve not changed all urls for example in: wp_posts, wp_postmeta . Should I change now?
    3)At the beginning, I added an empty new database on my host service. My new database is ‘dcustomer_upgrade’.
    After that, I imported File.sql with all information from an original database by phpMyAdmin. I can connect to ‘dcustomer_upgrade’ database and execute queries if I want.
    I changed wp-config as well:
    define(‘DB_NAME’, ‘dcustomer_upgrade’);
    define(‘DB_USER’, ‘********’);
    define(‘DB_PASSWORD’, ‘*******’);
    define(‘DB_HOST’, ‘mysql..’);

    4. .htaccess file
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?http://upgrade.MY123SITE.com [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]
    RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L]

    I am still redirecting to MY123SITE.com

    Reply To: Run copy of oryginal WordPress on Subdomain
     
    #1

Share This Page

Web Hosting