I have two domains each running of is own Modx (2.2.0) instance on my account.
domain1.com on the root
domain2.com pointing to domain2.com subdirectory.
domain2.com was created via the «Addon domain» of my CPanel Interface.
How should I configure the .htaccess file of the subdirectory «domain2.com» to obtain URL with the name of domain2.com only, functional friendly URLs, and a manager who does not appear as text?
And do I have to configure other files ?
Here's what I tried :
Case 1
With no htaccess file in the domain2.com subdirectory
Result :
- When I enter www.domain2.com in the URL bar, it goes to the website of domain2, but the URL address change to http://.www.domain1.com/domain2.com/
Case 2
I use theses rules in the htaccess file of the domain2.com subdirectory
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.domain2\.com [NC]
RewriteRule (.*)
http://www.domain2.com/$1 [R=301,L]
Result :
- When I enter « www.domain2.com » in the URL bar, it goes to home page of the website of domain2 and the URL address is « www.domain2.com », but the content of the home page is display as Text.
- If a click on a link on the home page to go to an another page, the address of this page in the URL bar becomes «
http://www.domain2.com/domain2.com/index.php?id=5 »,
and only the content of my chunk is dispaly (I use two chunks in my template, one for my top menu and one for my footer menu) the other content in «[[*content]]» is not display.
- The manager is display as Text
I hope I described my problem correctly, English is not my first language,
Thank you for answering
[ed. note: jber last edited this post 12 years, 3 months ago.]