Multiple Domains and Renaming Main Site File
Posted: 01 September 2004 07:00 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  51
Joined  12-01-2003

So here is what I’m trying to do:

1. Run multiple domains from one instance of EE
2. Rename the index.php file to something unique for each domain

Server/Hosting provider info:

1. Secondary domain runs in a folder “above” the EE directory
2. Primary domain runs in the EE directory

The providered help me by modifiying the .htaccess file to this:
(NOTE:  “key” is the replacement for a specific domain.  It was not changed in the primary EE directory)

----
<Files key>
ForceType application/x-httpd-php
SetHandler application/x-httpd-php
DirectoryIndex key
</Files>
Options All

RewriteEngine on
RewriteCond %{HTTP_HOST} ^moremoredaddy.ambleconnect.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.moremoredaddy.ambleconnect.com$
RewriteRule ^(.*)$ http://moremoredaddy.ambleconnect.com/key [R=301,L]

-----

Also in the situation where a secondary domain is running “above” the primary directory for EE, do I have to use absolute paths or will relative still work?

Thanks

Stuart

Profile
 
 
Posted: 01 September 2004 09:59 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  518
Joined  05-14-2004

The .htaccess file your host provided you looks a little more complicated than it probably needs to be, but then I’m not expert on .htaccess. Still, I’ve done what you’re trying to do and it works for me. In fact, I helped a fellow EE user with exactly the sort of situation you’re describing here. His EE install was two levels down from the root of his webspace and the secondary blog was one level down in a separate folder. As long as you specify the path properly in the path.php file it should work just fine.

 Signature 

“I was gratified to be able to answer promptly, and I did. I said I didn’t know.” - Mark Twain, Life on the Mississippi

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 60719 Total Logged-in Users: 18
Total Topics: 73172 Total Anonymous Users: 14
Total Replies: 394651 Total Guests: 477
Total Posts: 467823    
Members ( View Memberlist )