cPanel preview url: how log into wordpress admin?
How do I access the WP Admin part of my website using the cPanel preview temporary URL?
]
siteurl
home
Now, when I visit the preview URL, everything looks great but I'm not able to visit admin dashboard / backend. Instead I get redirected to another website being hosted on shared server.
= broken
---
I didn't have to update .htaccess, but you could try if the above snippet doesn't work.
- ]
- Does this work for primary domain?
- Will this work for addon domains?
- Why doesn't this work at all?
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.
# BEGIN WordPress
RewriteEngine On
RewriteBase /~username/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /~username/index.php [L]
# END WordPress-
Hello, I'm glad to see you were able to solve the issue. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
1 comment