Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Parking Multiple Domains on an Add-on Domain?



Threaded Mode | Print  

 Parking Multiple Domains on an Add-on Domain? (3 Replies, Read 5593 times)
mfriend
Group: Member
Post Group: Newbie
Posts: 2
Status:
I  need to set up a webserver to work on a local network. There will be several small websites. Each website may have a couple or more domain names point to it.  I know how to add  add-on domains and parked domains. What I need to do though is park extra domains onto the add-on domain(s) and not just the root of the main site. So for example:  there is a folder called "farming" that contains the website files for the farming site. farm  is the main domain.  Some folks though forget and add things like farming  so I want farming to be 'parked' on farm. Thanks for any help.Matthew
IP: --   

Parking Multiple Domains on an Add-on Domain?
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Hi,

You mean farm.com is main website and farm.com/farming is other page(folder). And you want if some is typing farming.com you want it to land on farm.com/farming right ?

Please correct me if I have misunderstood it.

You can create other addon domain for that folder farming.


-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack
IP: --   

Parking Multiple Domains on an Add-on Domain?
mfriend
Group: Member
Post Group: Newbie
Posts: 2
Status:
Hi Tidas:

Thank you for the reply.  The forum won't let me post actual links so it makes it more difficult.

1. I have several addon domains (about 6 of them). 
2. I have at least 2 domains that need to be pointed to each of the six.
3. None of them are sub-domains, but domains that point to specific websites.

So I'm trying to have multiple domains point to the same site.  I'm wondering if I could just create each domain as an add-on, and then use htaccess to forward the secondary domains to the primary for each site?

Thanks again,
Matthew
IP: --   

Parking Multiple Domains on an Add-on Domain?
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Hi,

Try placing the .htaccess with the following contents in the root of the domain which needs to be redirected :

Code
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
  RewriteCond %{HTTP_HOST} ^www.domain.com$
  RewriteRule (.*)$ http://www.main.com/$1 [R=301,L]
</IfModule>



-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 27, 2024, 7:06 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.033