Reply
how to rename .html to .php
Old 08-02-2009, 11:07 PM how to rename .html to .php
Novice Talker

Posts: 5
Trades: 0
Hi. newvibe here
So far i have designed a html website.
I did find membership website softwar ,they will install it for me, thanks god.
Now i need to "to rename my .htm/.html files to .php" i have no idia how to do it.
Could you tell me step by step how to do it
I probably need to read some kind tutorials that help me to understand ?

Thanks in advance.
bdworld is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 08-03-2009, 12:17 AM Re: how to rename .html to .php
vangogh's Avatar
Post Impressionist

Posts: 9,669
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Renaming the files is as simple as it sounds. It's no different than renaming a file on your computer. The details may depend a little on the software you're using to access the file on your server, but more than likely you would just right click on the file name and the context menu that opens will have an option to rename. Then would would simply type replace the .htm or .html with .php

However

Are you sure you'll need to rename your files. There's a good chance you won't. A website can have some pages that are .html and others that are .php. All that the .php is doing is to alert the server that before it sends that page to the browser it needs to run the file to a php engine so any php code is processed. Unless the pages in question actually have php code on them you don't need to change the extension. If you give a page without php code on it a .php extension it's still fine. The php engine won't see any php code to process and just send the file as is back to the webserver. It's an extra step though that doesn't need to happen.

The membership application will have php code so its files will need to have the .php extension, but they will already be using that extension. Your pages may not need to change unless you've specifically been told they do. My guess is they don't. But if you do need to change them it really is a simple as right clicking and renaming. There's nothing special you have to do.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 08-03-2009, 12:26 AM Re: how to rename .html to .php
freeloader's Avatar
Experienced Talker

Posts: 35
Trades: 0
Go to your hosting control panel file manager (I suppose you can find one), and append to file .htaccess in / (if the file is not there already, create it)
Code:
AddType application/x-httpd-php .html .htm
Adding the above directive will execute all .html and .htm files as php, achieving the same result as renaming them into .php on most default configurations.
__________________
"It is a profitable thing, if one is wise, to seem foolish." --Aeschylus
cheap unlimited web hosting | free domain site list
free unlimited online backup

Last edited by freeloader; 08-03-2009 at 12:30 AM..
freeloader is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to how to rename .html to .php
 

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.13077 seconds with 13 queries