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>
WP_HOME
definition line. I'm hoping this is just a typo in the code for the quesion:define("WP_HOME","http://IP/~username/example.com");
<-- The double quote after.com
. Second: what do the constantsDOMAIN_CURRENT_SITE
andPATH_CURRENT_SITE
do? I don't see them referenced in the Codex page on editingwp-config
. Third: Can you post the actual link to your site so we can take a look at what's happening?