Jul 6, 2008

Domain Does Not Work With "www'

Free Web Hosting, No Ads > CONTRIBUTE > Computers

free web hosting

Domain Does Not Work With "www'

cumar11
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.

Reply

snlildude87
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". smile.gif

Reply

RGPHNX
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 sad.gif smile.gif because most of them run UNIX/Linux ...etc.
Post back & let us all know how the problem resolved.. so others can benefit.
RGPHNX

Reply

cumar11
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"

Reply

rustypaulin
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

Reply

Carsten
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.

Reply

Carsten
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.

Reply

cumar11
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.

Reply

whyme
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.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. my domains www not working - 724.44 hr back.
Similar Topics

Keywords : domain, work, www

  1. Change My Domain?
    - how to? (2)


      Looking for domain, work, www

Searching Video's for domain, work, www
advertisement



Domain Does Not Work With "www'



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE