Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

i have one WordPress blog/site and want to point/map more than one domain name hosted/parked on my server.

How do i do that *without redirecting by .htaccess?*

Edit

Im configure the related setting in cpanel or plesk in parked domain but wordpress dont recognized them. I want to know why cant i confure thet easy as config it for first domain name? And also want to how do that?

share|improve this question
1  
I think this may be outside the scope of WPSE but you should be able to do it in CPanel or Plesk on the GUI end or park it with .htaccess. –  BandonRandon Jan 21 '13 at 9:27

1 Answer 1

up vote 2 down vote accepted

You can use a predefined constants that points to site URL.

(from Codex)

define('WP_SITEURL', 'http://example.com/wordpress');
define('WP_HOME',    'http://example.com/wordpress'); 

Small example

define('WP_SITEURL', 'http://'.$_SERVER['HTTP_HOST']);
define('WP_HOME',    'http://'.$_SERVER['HTTP_HOST']); 
share|improve this answer
    
im config the configs about park domain in cpanel .... Then ... it means that i install it again for second url? In seperate folder? Or for first installation repeat it more times for each url address? –  saber tabatabaee yazdi Jan 21 '13 at 11:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.