Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
having .php page as homepage
Old 02-07-2010, 11:34 PM having .php page as homepage
Skilled Talker

Posts: 53
Trades: 0
Hey guys, I just had a quick (newbie) question. Im building a website where I want the homepage to be a .php page (ie: www.website.php instead of www.website.com). The problem is that I dont know how to do this. Currently to tackle this problem I am simple redirecting my visitors to the .php page (ie: they get redirected from www.website.com to www.website.com/home.php).

This process seems a little to tacky and I'm looking for a cleaner solution. I would visitors to type in my website's name with the .com extension and be redirected to the .php extension. I dont know if this is possible but if anyone has a solution it would be appreciated. Cheers.
worldy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-07-2010, 11:56 PM Re: having .php page as homepage
Knight13's Avatar
Defies a Status

Posts: 10,289
Name: Knight13
Location: Cleveland, Ohio
Trades: 0
I don't believe that you can change a .com address to a .php file.
Knight13 is offline
Reply With Quote
View Public Profile
 
Old 02-08-2010, 01:10 AM Re: having .php page as homepage
Douglife's Avatar
Extreme Talker

Posts: 218
Name: Douglas Montgomery
Location: Florida
Trades: 0
In the root directory, the domain will pull either default.html, index(.htm & .html & .php & .asp) etc. So if you want to fix the situation then simply rename "home.php" to index and eliminate all other variations.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Douglife is offline
Reply With Quote
View Public Profile Visit Douglife's homepage!
 
Old 02-08-2010, 03:11 AM Re: having .php page as homepage
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Nearest you could get, would be to register a Philipine hostname (.ph) and use that for the website address.

Otherwise, what you are asking for is impossible.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-08-2010, 11:01 AM Re: having .php page as homepage
xela1966's Avatar
Super Talker

Posts: 135
Name: Baptista
Location: Alvor, Algarve Portugal
Trades: 0
Quote:
Originally Posted by Douglife View Post
In the root directory, the domain will pull either default.html, index(.htm & .html & .php & .asp) etc. So if you want to fix the situation then simply rename "home.php" to index and eliminate all other variations.
This is the right solution as the index page has not to be index.html it can be index.php and it will work fine.
__________________
Algarve Holidays
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
xela1966 is offline
Reply With Quote
View Public Profile Visit xela1966's homepage!
 
Old 02-09-2010, 08:42 AM Re: having .php page as homepage
Experienced Talker

Posts: 41
Name: Adam B
Trades: 0
What you're basically asking for is to register a ".php" domain name, which unfortunately as others have mentioned is an invalid domain. Perhaps it will be one day.
adam89 is offline
Reply With Quote
View Public Profile
 
Old 02-15-2010, 05:32 PM Re: having .php page as homepage
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 961
Name: Darren
Location: England
Trades: 0
is it just me or is everyone missing what the OP is asking?? (I've had a couple of tinnies!! )

It seems to me they are getting confused between a TLD and a file extension?

just call the first page you would like users to see as index.php ??
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 02-15-2010, 07:28 PM Re: having .php page as homepage
Douglife's Avatar
Extreme Talker

Posts: 218
Name: Douglas Montgomery
Location: Florida
Trades: 0
Thanks Xela1966, you are right too Rolda. I answered the question above, and since the poster hasn't returned, I'm assuming the issue was fixed or it wasn't an issue to begin with.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Douglife is offline
Reply With Quote
View Public Profile Visit Douglife's homepage!
 
Old 02-17-2010, 07:16 AM Re: having .php page as homepage
Novice Talker

Posts: 5
Trades: 0
just name the home page index.php, it wont show up in the URL bar and all you'd have was www.website.com

i read somewhere that some time in the future the .com, .co.uk etc system is going to be dropped and you can replace it with anything, i can't find the link where i read it, but it was on the bbc website so im sure it was kosher
Jskirt is offline
Reply With Quote
View Public Profile
 
Old 02-17-2010, 07:28 AM Re: having .php page as homepage
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You probably read this and misunderstood what it is about.

http://www.icann.org/en/topics/idn/
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to having .php page as homepage
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30244 seconds with 12 queries