I am attempting to set up my site using a temp URL (IP/~username/domain) through hostgator, but I am running into some issues. I have gone into the database and replaced all instances of my old domain with the new temp URL.
Problem is I am running into a redirect loop. I read somewhere to try resetting permalinks, but I don’t have access to the admin panel. I’m not sure what else to try to fix the redirect loop. I even replaced my .htaccess with a fresh one, and still get the redirect loop.
Here is my current wp-config file:
define("WP_SITEURL","http://IP/~username/example.com");
define("WP_HOME","http://IP/~username/example.com);
define('DOMAIN_CURRENT_SITE', 'IP/~username/example.com');
define('PATH_CURRENT_SITE', '/');
And my current .htaccess:
###############################################################
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
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]
</IfModule>
# END WordPress
##############################################################
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !.*.(jpeg|jpg|gif|png|ico)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /home.php [L]
</IfModule>
I assume IP stands for your IP address. In that case you are probably blocked by hostgator, as it can’t decide based only on the IP address which account is being accessed. in addition ~username is probably a URL that isn’t configured/accessible on the server.
In other words, ask hostgator for support.
Why do you even go for this when you can simply set everything correctly on the new server and just change the IP address associated with your domain in your local localhost file?