How do I access the WP Admin part of my website using the cPanel preview temporary URL?
http://192.167.123.456/~username/
I went into phpMyAdmin, and edited two tables "XYZ_options" to match my above preview url.
http://192.167.123.456/~username/wp-admin = broken
http://192.167.123.456/~username/primarydomain.com/wp-admin = broken
---
---
SOLVED
You must edit wp-config.php with new code
I didn't have to update .htaccess, but you could try if the above snippet doesn't work.
http://192.167.123.456/~username/
I went into phpMyAdmin, and edited two tables "XYZ_options" to match my above preview url.
- siteurl
- home
http://192.167.123.456/~username/wp-admin = broken
http://192.167.123.456/~username/primarydomain.com/wp-admin = broken
---
- Does this work for primary domain?
- Will this work for addon domains?
- Why doesn't this work at all?
---
SOLVED
You must edit wp-config.php with new code
Code:
define('WP_HOME','http://192.167.123.456/~username/');
define('WP_SITEURL','http://192.167.123.456/~username/');
I didn't have to update .htaccess, but you could try if the above snippet doesn't work.
Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~username/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /~username/index.php [L]
</IfModule>
# END WordPress
Last edited: