transfer to new domain
-
I am stuck! I created a test wordpress site on a directory of one of my sites https://www.slrbootcamp.com/pa/ to work on and test a new theme until I registered the permanent domain of https://www.padirectads.com.
In order to setup wordpress in that sub-directory I had to choose a multi-site setup.
I followed this video , which described step by step how to switch domain names on a wordpress site but still retain all the work, seo, settings, pictures , etc. Video Link:
To switch to the new domain I copied all the WP files from the the slrbootcamp.com/pa directory to my computer via FTP. I then backed-up the database and saved that file.
I then created a new database for the cloned WP. I uploaded the WP files to the new domain directory and edited the WP Config.php file to reflect the new database name and password, etc.
The issue I am having is with the .htaccess file. Whenever I go to the new https://www.padirectads.com it redirects to the old URL.
Under the old domain the htaccess file is:
RewriteEngine On
RewriteBase /pa/
RewriteRule ^index\.php$ – [L]# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]Under the padirectads.com root directory the htaccess files reads the same as above. I’m unsure which to change or what to change.
I would still like the old domain of slrbootacamp.com/pa/ to redirect to the new URL and was told to put the following in the old domain access file.
#Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ https://www.ENTER-YOUR-NEW-DOMAIN-HERE… [R=301,L]However when I do I end up getting a redirect loop. Looking at the code I can see why that would happen, I just don’t know what to put what were or what to edit.
I’m using cpanel on web hosting hub, and there are no redirects set from the cpanel from slrbootcamp.com/pa/ to padirectads.com or vise versa.
I would appreciate advice with this issue. Thank you.
- The topic ‘transfer to new domain’ is closed to new replies.