Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forms & Subdomains

Status
Not open for further replies.

Krus1972

Programmer
Mar 18, 2004
145
US
I have a unique issue I cannot resolve.

My website uses many subdomains for different areas from the main website much like yahoo & blogger.com does.

My issue is:

I have a form that allows visitors to conduct searches within my site. The form uses the "GET" method. When the visitors' browser is in any one of the subdomains I would like the form to to perform the the action on and return the visitor to the root domain of my site.

For example a visitor may be at When he/she conducts a search the URL in browser bar will be:


If the visiotr is in a subdomain and conducts the same search I would like the visiotr to return back to the root domain and the address abr should read:


I've tried using the following syntex in the "ACTION" field of the form:

action="mydomain.com/search.asp"
action="action="/search.asp"

No matter what I do I cannot get the visiotrs' address bar to return to the root (mydomain.com) when the form is posted.

Any ideas?

Thanks a bunch,

Jeff
 
Without seeing the actual HTML code, it's hard to say. But something you can try would be to create a redirect for your search page in the HTTP.conf file.

- George
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top