co domains with fowarding in ispconfig

Discussion in 'Installation/Configuration' started by alexnz, Jul 5, 2006.

  1. alexnz

    alexnz New Member

    how do i set this up properly?

    i have a domain goes too the main website

    i have a directory called /something - works

    now, how do i make a domain like foward too

    i have tried using the foward option under the co-domains section in the users site but when i type in it goes too the main site - instead of ?

    how can i fix this up? in the co-domains i have set to foward too, and many others (with and without http:// with and without www.) -

    what am i doing wrong in ispconfig?

    how can i do this manually?
  2. alexnz

    alexnz New Member

    anyone know how i can setup a http redirect for a co-domain manually?

    or why isnt ispconfig's working?

    even if i ask it too foward too it doesnt work.... any suggestions?
  3. n1kol1s

    n1kol1s New Member

    How do I redirect visitors from my old site to my new site?

    You can get visitors from your old site to come to your new site in one of three ways:
    You can simply leave a message on your old site with a link to your new site.

    You can put in a meta tag (a special piece of HTML code) that will automatically redirect users from your old website to your new web site. The code looks like this:
    <meta http-equiv="refresh" content="1;url=THENEWURL">

    Where "1" is the number of seconds until the redirect occurs and "THENEWURL" is the URL of your website (e.g. ""). Don't forget to include the "http://" part of the URL or the code won't work.

    that will do the
  4. CombatGod

    CombatGod New Member

    ISPConfig can only act as a domain if you designate it ONLY as a domain server. So if you want to have both domain forwarding AND a server you will need two separate servers with two different IP's.

    n1kol1s has a good suggestion. This is an easy way to redirect people to your new site Or you can get domain forwarding from a service. It is only a couple dollars per year and a more permanant solution.

    1and1 cheap domain forwarding

    also 1and1 automatically forwards sites with and without "www"
  5. falko

    falko Super Moderator ISPConfig Developer

    Did you have a look at chapter 2.3.2 here:

    There are also other ways of redirecting, for example with PHP's header() function or like this:
  6. alexnz

    alexnz New Member

    doesnt work,

    as ive said, ive already tried doing this as pre manuals instructions but its not working,

    when i type in its supposed too foward too

    why isnt this working?

    how can i set this manually? i dont want too have too create multiple individual sites for each co domain please, i would like one site with multi codomains going too directories inside the main site,

    very simple stuff, as i said i dont want too create multiple sites just for redirects,

    why isnt the fowarding working? how can i set this manually or at least check some cfg files for it
  7. falko

    falko Super Moderator ISPConfig Developer

    Can you post the vhost configuration of that web site from Vhosts_ispconfig.conf here?
    Any errors in Apache's error log?
  8. torusturtle

    torusturtle ISPConfig Developer ISPConfig Developer

    If you use an apache server you could do it like this:

    1. create the file ".htaccess" within your root web folder (where normaly index.html should be).
    2. add the following line to .htaccess:
    redirect permanent /
    3. save and you're ready
  9. anoshi

    anoshi New Member

    what about having subdomains just work off the bat without forcing a rewrite?

    I want requests for to return content from /var/www/, but I don't want the URL to show "", I want it to read "".

    at the moment I have the subdomain setup as a co-domain, and the forward is set to "sub". Not the desired outcome though.
  10. falko

    falko Super Moderator ISPConfig Developer

Share This Page