Difference between revisions of "WordPress"

From Amahi Wiki
Jump to: navigation, search
Line 7: Line 7:
  
 
::find  
 
::find  
::{| style="width: 90%" cellspacing="0" border="1"
+
::{{Code|ServerAlias wordpress.yourhomedomain}}
!style="color:#333333; background-color:#A9B8C2;height: 20px"|Code
+
 
|-
 
!style="color:green;"|<code>ServerAlias wordpress.yourhomedomain</code>
 
|}
 
 
::add this line right after
 
::add this line right after
::{| style="width: 90%" cellspacing="0" border="1"
+
::{{Code|ServerAlias myblog.info}}
!style="color:#333333; background-color:#A9B8C2;height: 20px"|Code
+
 
|-
 
!style="color:green;"|<code>ServerAlias myblog.info</code>
 
|}
 
 
:'''Step 2'''
 
:'''Step 2'''
 
:install to your wordpress the plugin called Domain Mirror. Set up as admin your domains.  
 
:install to your wordpress the plugin called Domain Mirror. Set up as admin your domains.  

Revision as of 09:47, 28 December 2010

Multiple Domains for one site

Supposed you own a domain (e.g myblog.info) and you have a way to update dns servers with your IP case you are dynamic (majority of home users) then you can do also the following:

Step 1
edit the file /etc/httpd/conf.d/####-wordpress.conf.
find
bash code
​ServerAlias wordpress.yourhomedomain​


add this line right after
bash code
​ServerAlias myblog.info​


Step 2
install to your wordpress the plugin called Domain Mirror. Set up as admin your domains.

This way wordpress always replays with the correct domain. All links from dashboard work without problems.