Temporary URL with addon domain

ddddmiddd

Registered
Jun 30, 2019
1
0
1
NYC
cPanel Access Level
Website Owner
Hello,

I had one domain at my hosting provider where I could access the WordPress logon at the temporary URL of http://serveripaddress/~account-username/wp/wp-admin.

I've added an addon domain (this domain currently points to an existing website at another host), installed WordPress, and would like to access it at a temporary URL.

I've tried http://serveripaddress/~account-username/addon-domain, http://serveripaddress/~account-username/addon-domain/wp, and http://serveripaddress/~account-username/addon-domain/wp-admin, but nothing works.

I've also modified the URL and home records in the options table in the phpMyAdmin database to match all three formats above. I've also tried editing the wp_config.php file by adding

define('WP_HOME','http://serveripaddress/~account-username/addon-domain);
define('WP_SITEURL','http://serveripaddress/~account-username/addon-domain');

Nothing has worked. Can you please tell me what I'm missing?

Thank you!
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
6,762
535
263
Houston
cPanel Access Level
DataCenter Provider
This would be a mod_userdir setting - if you don't have root access to the server I'd suggest you contact your provider to see if they'll exclude your account from mod_userdir protection information on mod_userdir can be found here: Apache mod_userdir Tweak - Version 82 Documentation - cPanel Documentation

I will also second @nixuser's suggestion that the best way to view the site before its live is to modify your hosts file.
 
  • Like
Reactions: nixuser