DelphiFAQ Home Search:



Databases
InterBase, MS-SQL, mysql, Oracle
Programming
C#, C++, Delphi, Java,
JavaScript, perl, php, Visual Basic, VBScript
Linux
Apache, Network, Shell
Web Publishing
JavaScript, perl CGI, VBScript, Web Hosting
Windows
Apache, File Types, Internet Explorer,
Network, Printing, Processes
Outside the Cube
Auto, Computer Hardware,
Finances, Dating Scams,
Household, Male Dating Scammers,
Other Scams, Travel

Featured Article

My web page redirects from afiliate.site.com to www.site.com

Question:

My site regularly is accessed as www.site.com and for affiliates I have a special version affiliate.site.com with some extra panels.
However, after submitting a form, the web server redirects to www.site.com. Why is that?

Answer:

There are many possible reasons for this phenomenon. One possibility is that the URL is slightly wrong. I once had this situation (which might apply to you):

Session was directed to:
affiliate.site.com//thankyou.htm

Notice the two / in the URL, caused by a scripting error - The page that loaded in the browser was:

www.site.com/thankyou.htm

This was with Apache 2.0


Generated 16:02:47 on Dec 8, 2016