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 dat.co.nz

    www.dat.co.nz goes too the main website

    i have a directory called /something

    www.dat.co.nz/something - works

    now, how do i make a domain like test.dat.co.nz foward too www.dat.co.nz/somthing???

    i have tried using the foward option under the co-domains section in the users site but when i type in test.dat.co.nz it goes too the main site - www.dat.co.nz instead of www.dat.co.nz/something ?

    how can i fix this up? in the co-domains i have set test.dat.co.nz to foward too http://www.dat.co.nz/something, 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 google.com 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. "http://www.abc.com/"). Don't forget to include the "http://" part of the URL or the code won't work.


    that will do the trick...lol
     
  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 Howtoforge Staff

    Did you have a look at chapter 2.3.2 here: http://www.ispconfig.org/downloads/manual_en/manual_kunde_en_src.htm#4_2_3

    There are also other ways of redirecting, for example with PHP's header() function or like this: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
     
  6. alexnz

    alexnz New Member

    http://www.ispconfig.org/downloads/manual_en/manual_kunde_en_src.htm#4_2_3

    doesnt work,

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

    when i type in something.domain.com its supposed too foward too domain.com/something

    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 Howtoforge Staff

    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 Member

    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 / http://www.dat.co.nz/somthing
    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 sub.domain.xyz to return content from /var/www/www.domain.xyz/web/sub, but I don't want the URL to show "domain.xyz/sub", I want it to read "sub.domain.xyz".

    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 Howtoforge Staff

Share This Page