icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Shared Hosting » .htm .html act as .php

Shared Hosting Questions about your shared hosting account.

Reply
 
LinkBack Thread Tools Search this Thread
Old January 26th, 2008, 3:59 PM   #1 (permalink)
Registered User
Comfy Contributor
 
kwright510's Avatar
 
Joined in Dec 2007
Hosted on hosting.wrightpcconsulting.com
118 posts
Gave thanks: 10
Thanked 6 times
Question .htm .html act as .php

I would like for my html pages to act as if they are .php and process php scripts rather than change page extensions and potentially lose page ranking in google. With another host I simply added this line to my .htaccess file: AddType application/x-httpd-php .htm .html. However, this no workie as I get 404 errors. I also tried changing php to php5 in the above line. Still no joy.

Ideas, suggestions, made up stuff?
kwright510 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 26th, 2008, 4:21 PM   #2 (permalink)
Dan
Staff of Surpass
Super #1
 
Dan's Avatar
 
Joined in Apr 2007
3,228 posts
Gave thanks: 198
Thanked 224 times
Send a message via AIM to Dan Send a message via MSN to Dan
I think there's a way to do this in cpanel.

Submit a ticket to support and they should be able to help you out
__________________
D4nz Net - Surpass Help Desk - NES Forever
Use the thanks button. It works!
AIM: dansorl
Dan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks Dan for this great post!
kwright510 (January 26th, 2008)
Old January 26th, 2008, 4:26 PM   #3 (permalink)
Registered User
Comfy Contributor
 
kwright510's Avatar
 
Joined in Dec 2007
Hosted on hosting.wrightpcconsulting.com
118 posts
Gave thanks: 10
Thanked 6 times
Off to submit a ticket...
kwright510 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 26th, 2008, 4:41 PM   #4 (permalink)
is a
Comfy Contributor
 
Prig's Avatar
 
Joined in Jul 2004
Lives in CT
Hosted on Dime1001
284 posts
Gave thanks: 15
Thanked 8 times
I think you can change something with the MIME types? But I'm not entirely sure about that.
__________________
Prig is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 26th, 2008, 4:41 PM   #5 (permalink)
Yabadabadoo
Super #1
 
Geoff's Avatar
 
Joined in Nov 2004
Lives in B.C., Canada
Hosted on Dedicated
1,036 posts
Gave thanks: 7
Thanked 28 times
Quote:
Originally Posted by kwright510 View Post
With another host I simply added this line to my .htaccess file: AddType application/x-httpd-php .htm .html. However, this no workie as I get 404 errors.
That should work here as well... and it definately shouldnt cause 404 Errors. Might cause Internal Server Errors, but thats a whole different ball game
__________________
Geoff Ellis - Surpass Dedicated Server Customer
www.adepttechs.net
Geoff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 26th, 2008, 4:44 PM   #6 (permalink)
Registered User
Comfy Contributor
 
kwright510's Avatar
 
Joined in Dec 2007
Hosted on hosting.wrightpcconsulting.com
118 posts
Gave thanks: 10
Thanked 6 times
I'll give it another shot...
kwright510 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 26th, 2008, 4:45 PM   #7 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Lives in N,BC,CA
8,230 posts
Gave thanks: 49
Thanked 136 times
I really don't suggest doing this... it means any time you load a page, it's going to be putting it through the PHP interpreter. That causes extra load.
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 26th, 2008, 4:49 PM   #8 (permalink)
Registered User
Comfy Contributor
 
kwright510's Avatar
 
Joined in Dec 2007
Hosted on hosting.wrightpcconsulting.com
118 posts
Gave thanks: 10
Thanked 6 times
Quote:
Originally Posted by H View Post
I really don't suggest doing this... it means any time you load a page, it's going to be putting it through the PHP interpreter. That causes extra load.
But each page has at least one, usually multiple php scripts So how is the load any different that if I changed the extension?
kwright510 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 26th, 2008, 4:52 PM   #9 (permalink)
Yabadabadoo
Super #1
 
Geoff's Avatar
 
Joined in Nov 2004
Lives in B.C., Canada
Hosted on Dedicated
1,036 posts
Gave thanks: 7
Thanked 28 times
he's referring to any page that doesnt have php in it... putting it through uses extra resources that normally wouldnt be there... how signifcant that is depends on how many pages arent using PHP and how big they are.
__________________
Geoff Ellis - Surpass Dedicated Server Customer
www.adepttechs.net
Geoff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 edit your posts

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