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?
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?
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
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"
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
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
Can you post the vhost configuration of that web site from Vhosts_ispconfig.conf here?
Any errors in Apache's error log?
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
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.
Have a look here: http://www.howtoforge.com/forums/sho...hlight=rewrite
|All times are GMT +2. The time now is 13:07.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.