Get Paid to Participate - up to $1 per post!     Twitter     Facebook     Google+
Hosting Discussion
 

Hosting Discussion > Web Hosting Forums > Website Development & Design > [.htacess] Mask .php to look like .html?
forgot password?



Reply


Old
  Post #1 (permalink)   07-25-2009, 09:57 PM
HD Newbie
 
Join Date: Jul 2009
Posts: 25

Status: webserveme is offline
Hi guys,

This has got to sound silly, but can anyone tell me how to mask .php extension to show as .html using .htacess?

I tried doing this:

Code:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.*)\.htm$ $1.php [nc]
However, I don't think it is working. Any help is appreciated.
__________________
Professional Web Hosting & Consultation | WebServe.Me
FREE Domain, cPanel 11, PHP5/MySQL5+, 50+ Ready-to-Use Scripts, CGI-BIN, WAP/WML/Wireless Support.
 
 
 


Old
  Post #2 (permalink)   07-28-2009, 06:02 AM
HD Newbie
 
Join Date: Jul 2009
Posts: 4

Status: Rock125 is offline
I traced it to the .htaccess file. When I was bringing up my site, the ads wouldn't show and the .php wouldn't execute. And sometimes my Browser would try to download the webpage instead of just view it. So I went back and forth on tech support with my ISP LunarPages.

Seems they run something called suPHP and the contents of .htacess must be:

AddType x-httpd-php .php .htm .htm

(notice it doesn't have the 'application/' in it.)

I guess suPHP doesn't like the 'application/' .

I am new at this, but it might work for you if you are having a rough time..




<MOD NOTE: Signatures can be added through user panel instead of being manually added to posts.>
 
 
 


Old
  Post #3 (permalink)   08-04-2009, 03:01 AM
HD Newbie
 
Join Date: Jul 2009
Posts: 25

Status: webserveme is offline
hi thanks for the info. I finally found the error; was missing an "L" from the syntax.
__________________
Professional Web Hosting & Consultation | WebServe.Me
FREE Domain, cPanel 11, PHP5/MySQL5+, 50+ Ready-to-Use Scripts, CGI-BIN, WAP/WML/Wireless Support.
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: