|
|
|
|
||||||
| comp.info.servers.unix Web servers for UNIX platforms. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Has this been done before or can it be done and if so can you tell me
how? I have 10 different domains pointing at one specific server with its own domain. The only time people should be able to reach my server with those 10 domains is when there is a specific page it is going to...otherewise if it is just the domain name as the url, I dont want them showing up at site at all. So i want to redirect people that are using the root address somewhere else but allow those using the root address with a certain page..make sense? For instance: Can i do this?: Redirect www.domain1-10.com/ to http://www.maindomain.com/error.htm (????) So that if someone types in just www.domain1-10.com, they will not be allowed but redirected to an error page but if they go to a url such as http://www.domain1-10.com/catalog/pr...dex.htm...then they will allowed Will such a redirect as I have above prevent the url www.domain1-10.com working for anything at all even if it is a specific page access ? I know...weird but I need this to be so. Please advise anyone. If you could, give me the actual htaccess configuration that will do this? Thankyou! |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
|
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
In comp.infosystems.www.servers.unix rkeddie@gmail.com wrote:
| Has this been done before or can it be done and if so can you tell me | how? | | I have 10 different domains pointing at one specific server with its | own domain. | The only time people should be able to reach my server with those 10 | domains is when there is a specific page it is going to...otherewise if | it is just the domain name as the url, I dont want them showing up at | site at all. So i want to redirect people that are using the root | address somewhere else but allow those using the root address with a | certain page..make sense? For instance: | | Can i do this?: | | Redirect www.domain1-10.com/ to http://www.maindomain.com/error.htm | (????) | | So that if someone types in just www.domain1-10.com, they will not be | allowed but redirected to an error page but if they | go to a url such as http://www.domain1-10.com/catalog/pr...dex.htm...then | they | will allowed | | Will such a redirect as I have above prevent the url www.domain1-10.com | working for anything at all even if it is a specific page access ? I have not tested this for what you are doing, but I have used this directive for some other things. This could be in the virtualhost section of httpd.conf, or should work in .htaccess too. RedirectMatch permanent ^/$ http://main.domain.to.see/whatever.html You might want to also do: RedirectMatch permanent ^/default\..* http://main.domain.to.see/whatever.html RedirectMatch permanent ^/index\..* http://main.domain.to.see/whatever.html -- ----------------------------------------------------------------------------- | Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | ----------------------------------------------------------------------------- |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
In comp.infosystems.www.servers.unix rkeddie@gmail.com wrote:
| Has this been done before or can it be done and if so can you tell me | how? | | I have 10 different domains pointing at one specific server with its | own domain. | The only time people should be able to reach my server with those 10 | domains is when there is a specific page it is going to...otherewise if | it is just the domain name as the url, I dont want them showing up at | site at all. So i want to redirect people that are using the root | address somewhere else but allow those using the root address with a | certain page..make sense? For instance: | | Can i do this?: | | Redirect www.domain1-10.com/ to http://www.maindomain.com/error.htm | (????) | | So that if someone types in just www.domain1-10.com, they will not be | allowed but redirected to an error page but if they | go to a url such as http://www.domain1-10.com/catalog/pr...dex.htm...then | they | will allowed | | Will such a redirect as I have above prevent the url www.domain1-10.com | working for anything at all even if it is a specific page access ? I have not tested this for what you are doing, but I have used this directive for some other things. This could be in the virtualhost section of httpd.conf, or should work in .htaccess too. RedirectMatch permanent ^/$ http://main.domain.to.see/whatever.html You might want to also do: RedirectMatch permanent ^/default\..* http://main.domain.to.see/whatever.html RedirectMatch permanent ^/index\..* http://main.domain.to.see/whatever.html -- ----------------------------------------------------------------------------- | Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | ----------------------------------------------------------------------------- |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
In comp.infosystems.www.servers.unix rkeddie@gmail.com wrote:
| Has this been done before or can it be done and if so can you tell me | how? | | I have 10 different domains pointing at one specific server with its | own domain. | The only time people should be able to reach my server with those 10 | domains is when there is a specific page it is going to...otherewise if | it is just the domain name as the url, I dont want them showing up at | site at all. So i want to redirect people that are using the root | address somewhere else but allow those using the root address with a | certain page..make sense? For instance: | | Can i do this?: | | Redirect www.domain1-10.com/ to http://www.maindomain.com/error.htm | (????) | | So that if someone types in just www.domain1-10.com, they will not be | allowed but redirected to an error page but if they | go to a url such as http://www.domain1-10.com/catalog/pr...dex.htm...then | they | will allowed | | Will such a redirect as I have above prevent the url www.domain1-10.com | working for anything at all even if it is a specific page access ? I have not tested this for what you are doing, but I have used this directive for some other things. This could be in the virtualhost section of httpd.conf, or should work in .htaccess too. RedirectMatch permanent ^/$ http://main.domain.to.see/whatever.html You might want to also do: RedirectMatch permanent ^/default\..* http://main.domain.to.see/whatever.html RedirectMatch permanent ^/index\..* http://main.domain.to.see/whatever.html -- ----------------------------------------------------------------------------- | Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | ----------------------------------------------------------------------------- |
|
![]() |
| Outils de la discussion | |
|
|