Your HostICan Community  


Go Back   Your HostICan Community > Programming & Design > PHP / MySQL Assistance

PHP / MySQL Assistance We understand. Not all of you are experienced programmers, but some of you are highly skilled at coding. So we've set aside this forum so you can ask questions, and provide answers to the most commonly asked PHP / MySQL issues.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-08-2008, 09:09 AM
darshanr darshanr is offline
Junior Member
 
Join Date: Aug 2008
Posts: 1
Default .htaccess Force Type

Hi, Im pretty sure this does not go here, but I know a lot of php developers have used this in the past.. I'm trying to get the web server to recognize that the file 'saturn' is of type php and will render the page as a php page.. So I added this line to my .htaccess file


ForceType application/x-httpd-php


and there exists a file 'saturn' but it is not rendering as a php page. Any help is greatly appreciated.
Reply With Quote
  #2  
Old 08-08-2008, 08:27 PM
lnxcode's Avatar
lnxcode lnxcode is offline
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,956
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Quote:
Originally Posted by darshanr View Post
Hi, Im pretty sure this does not go here, but I know a lot of php developers have used this in the past.. I'm trying to get the web server to recognize that the file 'saturn' is of type php and will render the page as a php page.. So I added this line to my .htaccess file


ForceType application/x-httpd-php


and there exists a file 'saturn' but it is not rendering as a php page. Any help is greatly appreciated.
Welcome to the HostICan Community Forum!

Have you tried to do this via the cPanel interface? You should be able to set this file in the MIME Types.

I think it may have to be:


ForceType application/x-httpd-php .php


or


ForceType application/x-httpd-php5 .php


More information is available on:

Page 2 - Using ForceType For Nicer Page URLs
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
Reply

Tags
force, htaccess, type

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess question Hollywood PHP / MySQL Assistance 3 04-30-2008 02:53 PM
Is Modrewrite and .htaccess the same ? james Shared Hosting 3 02-08-2008 05:54 AM
hotlink protection via .htaccess lnxcode Shared Hosting 1 11-12-2007 06:22 PM
Movable Type - blogging script seoguru Blogging 15 10-29-2007 05:36 AM
.htaccess and wordpress 406 error db3000 PHP / MySQL Assistance 33 09-25-2007 10:19 PM


All times are GMT -4. The time now is 07:38 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Copyright © 2003 - 2008 HostICan. All Rights Reserved.