Do you have a question? Post it now! No Registration Necessary. Now with pictures!
January 9, 2006, 9:02 pm
rate this thread
Hi everyone !
I hope I am in the right group. I have a couple very complicated
questions (at least to me).
I have a question regarding to domain redirection (I don't know if I
used the right
term). Let's say have a domain "www.something.com". Every time a user
this domain, this will redirect a user to another domain
"sub1.anotherdomain.com", which contains most of my website's files.
The other files actually sit in my original domain
("www.something.com/otherfiles/"). Is it possible that the original
domain "www.something.com" will still be displayed in the web brower
after the user
being redirected to "sub1.anotherdomain.com" (instead of showing
"sub1.anotherdomain.com", the browser showing "www.something.com" along
with appropriate sub directories/files if there are any).
To make this question easier to understand, Here are some urls that I
made up to demonstrate my question.
1) "www.something.com" --> "sub1.anotherdomain.com/home.htm"
2) "www.something.com/js/form/loginform.asp?bhd=4343" -->
The relative path "/js/form/loginform.asp?bhd=4343" actually exist in
the "anotherdomain.com", but doesn't exist at "something.com"
3) "subdomain1.something.com" --> "something.com/subdirectory1/"
(point to a directory in original domain)
4) "subdomain2.something.com" --> "something.com/sub2.htm" (point to
an html file in the original domain)
Please note: all the links in the "anotherdomain.com" have relative
paths, not absolute path.
How would I be able to do this ? (I heard I can edit .httaccess file
in apache server to do this) If that is the case, is there a specific
examples regarding to editing .httaccess file to achieve what I want to
do ? )
If you would point me to a specific examples/tutorial on how to do
this, I would greatly appreciate your help. Please be specific, I am
not really a techie guy.
Re: Domain redirection.
In answer to your question.
Yes, you probly can do it. But I personally would not bother.
It's too much mucking about and will really only get your site banned
by the S.E's.
As that is a method used by some undesirable sites.
I would also not recomend linking directorly to sub-directories, as
that is not very secure.
I hope this helps.
(all the other stuff has been smipt).
Regards Chad. http://freewebdesign.cjb.cc
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum