Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th July 2006, 02:05
alexnz alexnz is offline
Member
 
Join Date: Jun 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
Default co domains with fowarding in ispconfig

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?
Reply With Quote
Sponsored Links
  #2  
Old 6th July 2006, 00:39
alexnz alexnz is offline
Member
 
Join Date: Jun 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
Default

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?
Reply With Quote
  #3  
Old 6th July 2006, 01:01
n1kol1s n1kol1s is offline
Member
 
Join Date: May 2006
Posts: 60
Thanks: 2
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #4  
Old 6th July 2006, 08:12
CombatGod CombatGod is offline
Member
 
Join Date: Jan 2006
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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"
Reply With Quote
  #5  
Old 6th July 2006, 11:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by alexnz
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.) -
Did you have a look at chapter 2.3.2 here: http://www.ispconfig.org/downloads/m..._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
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 7th July 2006, 00:47
alexnz alexnz is offline
Member
 
Join Date: Jun 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
Default

http://www.ispconfig.org/downloads/m..._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
Reply With Quote
  #7  
Old 7th July 2006, 10:01
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Can you post the vhost configuration of that web site from Vhosts_ispconfig.conf here?
Any errors in Apache's error log?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 7th July 2006, 10:01
torusturtle torusturtle is offline
Senior Member
 
Join Date: Apr 2006
Posts: 296
Thanks: 21
Thanked 24 Times in 16 Posts
Send a message via ICQ to torusturtle Send a message via AIM to torusturtle
Default

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
Reply With Quote
  #9  
Old 11th July 2006, 16:06
anoshi anoshi is offline
Junior Member
 
Join Date: Jul 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #10  
Old 12th July 2006, 13:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Have a look here: http://www.howtoforge.com/forums/sho...hlight=rewrite
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 14:15
ISPconfig to host multiple domains in one IP with multiple DynDns addresses agelospanagiotakis Installation/Configuration 23 2nd April 2008 11:10
ISPConfig 2.3.1-dev released till General 0 8th May 2006 22:18
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16
Extra domains with ISPConfig on server TheRudy General 6 16th April 2006 14:21


All times are GMT +2. The time now is 10:32.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.