|
|
|
|
![]() ![]() |
Mar 28 2005, 07:48 PM
Post
#1
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 50 Joined: 24-March 05 Member No.: 4,860 |
when I type my domain name into address bar www.mysite.co.uk it does NOT work
and when I type mysite.co.uk without WWW it WORKS and My index file is Index.php how to make that apache think my index file index.php instead of index.html cuz other wise apache will use the index.html or is there a way I can make index.html file start the index.php file sorry about the english, not my native language. |
|
|
|
Mar 28 2005, 07:54 PM
Post
#2
|
|
|
Moderator ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 2,325 Joined: 8-March 05 From: Mawson, Antarctica Member No.: 4,254 |
Ahh, yes, try changing your "Index.php" into "index.php". In other words, make the "I" in your "Index" lowercase. I think that should make a difference. Otherwise, delete your "index.html".
|
|
|
|
Mar 29 2005, 06:27 AM
Post
#3
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 380 Joined: 22-December 04 From: usa Member No.: 2,873 |
Hi cumar11,
I had a similar problem w/ my site. I'm almost certain that snlildude87 is correct, as I solved my problem by changing the syntax on one of the files/ subfolders. Servers are particularly picky re: syntax Post back & let us all know how the problem resolved.. so others can benefit. RGPHNX |
|
|
|
Mar 29 2005, 12:49 PM
Post
#4
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 50 Joined: 24-March 05 Member No.: 4,860 |
guys you were right
I deleted the index.html and and apache used my index.php thank guys, before you told me about this , I used index.html file to redirct the user into index.php. I don't need to do that again. My second prolem was my domain does NOT work when you type the WWW.site.com but when I type site.com Without the "WWW" it works how to solve this , otherwise my users will get a error if they use the "WWW" |
|
|
|
Mar 29 2005, 01:36 PM
Post
#5
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 309 Joined: 8-March 05 Member No.: 4,273 |
i have the same problem if i go to my site with the www. bit it doesn't work and i get the Welcome to your hosting account page but take away the www. and i get my site, its not really a problem but it is annoying
|
|
|
|
Mar 29 2005, 01:48 PM
Post
#6
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 51 Joined: 22-March 05 Member No.: 4,813 |
This might be a problem in the Apache configuration files. You could try solving your problem by creating a .htaccess file with a DirectoryIndex directive to your index.php file. To do this, just open notepad and paste the following code:
CODE DirectoryIndex index.php index.html This line will make your index.php file the default index file, and if there is no index.php file Apache will look for an index.html file. You can add more filenames if you want to.If this doesn't work, try to create a new subdomain called www and point it to your /www or /public_html folder. |
|
|
|
Mar 29 2005, 01:50 PM
Post
#7
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 51 Joined: 22-March 05 Member No.: 4,813 |
Note: save the file in notepad as ".htaccess" and make sure that it has no .txt file extension since the .htaccess file wouldn't be read then. Just upload the file to your /public_html or /www directory.
|
|
|
|
Mar 29 2005, 04:41 PM
Post
#8
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 50 Joined: 24-March 05 Member No.: 4,860 |
QUOTE(Carsten @ Mar 29 2005, 01:50 PM) Note: save the file in notepad as ".htaccess" and make sure that it has no .txt file extension since the .htaccess file wouldn't be read then. Just upload the file to your /public_html or /www directory. thanks dude, I have solved the index file proplem , I just deleted the index.html and made the index.php lowercase. but proplem with 'WWW" is still on. I site does still not work when I type the www.mysite.com and if I try to create a subdomain , cpanel will give an error that it is not allowed to create "www" subdomain I can create any other subdomain I want. I have "home" subdomain. |
|
|
|
Apr 2 2005, 12:49 AM
Post
#9
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 661 Joined: 10-January 05 Member No.: 3,189 |
It's something with the DNS configuration that is creating this problem, which domain registrar are you using? Certain domain registrars have difficulites fully transferring the DNS records, making the "www" unuseable.
|
|
|
|
![]() ![]() |