Singer Posted January 3, 2004 Posted January 3, 2004 I've run into an issue others have mentioned recently, but things have eventually worked for them. I created a subdomain using CPanel, letting CPanel create the subdomain directory and association. I didn't do anything further (following the instructions from other people's posts). When I specify the subdomain (http://trial.coachdana.com) in a browser, it is getting translated to www.coachdana.com. I wonder what I may be doing differently. Any thoughts? Thanks. Quote
TCH-Dick Posted January 3, 2004 Posted January 3, 2004 You have a redirect setup, remove it. ><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD> <TITLE>301 Moved Permanently</TITLE> </HEAD><BODY> <H1>Moved Permanently</H1> The document has moved <A HREF="http://www.coachdana.com/index.php">here</A>.<P> <HR> <ADDRESS>Apache/1.3.29 Server at trial.coachdana.com Port 80</ADDRESS> </BODY></HTML> Quote
Singer Posted January 3, 2004 Author Posted January 3, 2004 Hmmm...curious...I don't know where that's from. As I said earlier, I didn't set up any redirection when I created the trial subdomain. However, I now went into CPanel's subdomain page and selected the "Remove subdirection" item. Still the same thing. I checked the .htaccess files in both the public_html and trial directories; no evidence of a redirection related to "trial" in either one. BTW, how did you manage to see that 301 page? Quote
TCH-Dick Posted January 3, 2004 Posted January 3, 2004 (edited) I use this program IP-Tools Here is what it shows >Requesting [URL=http://trial.coachdana.com]http://trial.coachdana.com[/URL] .. Ok Reply received (reply time: 141 ms) ----------------------------------- HTTP/1.1 301 Moved Permanently Date: Sat, 03 Jan 2004 19:28:01 GMT Server: Apache/1.3.29 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.2 PHP/4.3.3 FrontPage/5.0.2.2634 mod_ssl/2.8.16 OpenSSL/0.9.7a Location: [URL=http://www.coachdana.com/index.php]http://www.coachdana.com/index.php[/URL] Connection: close Content-Type: text/html; charset=iso-8859-1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD> <TITLE>301 Moved Permanently</TITLE> </HEAD><BODY> <H1>Moved Permanently</H1> The document has moved <A HREF="http://www.coachdana.com/index.php">here</A>.<P> <HR> <ADDRESS>Apache/1.3.29 Server at trial.coachdana.com Port 80</ADDRESS> </BODY></HTML> Edited January 3, 2004 by TCH-Dick Quote
TCH-Rick Posted January 3, 2004 Posted January 3, 2004 You have a redirect in your public_html file that redirects /index.html to http://www.coachdana.com/index.php. That causes any index.html call to be sent to the main directory regardless of which subdomain or subdirectory it is in. Quote
Lianna Posted January 3, 2004 Posted January 3, 2004 Yep, and further evidence of that -- If you attempt to go to: http://www.coachdana.com/trial/ which should work, you'll see that it attempts to load your main site's index.php (and fails to some degree). Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.