Forum Moderators: open

Message Too Old, No Replies

Leaving off www. And Java in Form

Difference between www.example.com and example.com

         

bumpaw

5:56 pm on Apr 7, 2004 (gmt 0)

10+ Year Member



It seems that when you access a site by simply typing example.com in the address box, that a form doesn't show up on the contact-us.php page. The page displays down to the java part of the form in the html. Everything is fine if you go in with www.example.com.

Evidently some like to leave the www off when they type in the address. I have one tester who does anyway.

DrDoc

7:38 pm on Apr 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



So, use mod_rewrite to always rewrite to www.

bumpaw

8:11 pm on Apr 7, 2004 (gmt 0)

10+ Year Member



My hosting tech support assures me that mod_rewrite is functioning. I notice that the bad display seems to happen when you type /contact-us.php in the url, but if you use the link on the page it works. You would swear it's a simple linkage problem, but I can't see it.

Could it have something to do with Content Negotiation which I'm using here for the second time only?

bumpaw

8:42 pm on Apr 7, 2004 (gmt 0)

10+ Year Member



Problem solved thanks to the great hosting tech support. The form script has spam protection that restricts access to the form. The script has to be called from a predefined referrer address, and linking to the form directly won't work.

tedster

5:36 pm on Apr 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just for clarity - this is about javascript in the form, and not java, right? Those two technologies are not at all the same thing.

bumpaw

6:00 pm on Apr 8, 2004 (gmt 0)

10+ Year Member



this is about javascript in the form, and not java, right?

Javascript is correct.