Use .html(or whetever) to process php

Started on the old forum in July 2009 · view the original in the archive · old links redirect here

6 replies · 525 views · started 17 years ago · 1 min read

5 participants
CreativityKills Lead · 833 posts #1

Add to ur htaccess

AddHandler application/x-httpd-php .html AddHandler application/x-httpd-php .htm

to use different file type, change .html to whatever eg .lol, .wap, .fcker

when u create files wit .html they can be processed as php. Easy.

subzero Super moderator Fellow · 3,954 posts #3

Other way also better on server load.

RewriteEngine on
RewriteRule ^index.htm$ index.php
RewriteRule ^login.htm$ login.php
RewriteRule ^members.htm$ members.php
RewriteRule ^404.htm$ 404.php
RewriteRule ^style.htm$ /style/style.c
RewriteRule ^browser.htm$ browser.php

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

morse Senior · 364 posts #4

What subzero has written is much better and sensible to follow, the .htaccess by mobilegigs may create problems on different host, for me that .htaccess doesnt work as it exposes my php coding.

tinyurl.com/earnbymobile Easy earning for Indians

Alternative mobile advertising network .. Minimum 100 USD pay / NET15 pay cycle, Good Brand, Best targeting for Android goo.gl/6vub3

CreativityKills Lead · 833 posts #5

well i use paid host, do u? / @something else, no it doesnt. It just allows d extension to be run by d php engine. E.g if i change a files name 4rm file.php to file.mgml then use the addhandler, when u visit d file.mgml, it'll show d same way! I already used dat subzero method 4 a CSRF b4.

something else Fellow · 2,296 posts #6

lol i didnt read it properly lol thought i edited my post or deleted it lol forget my previous post cos i wasnt looking at yours properly 😛

kiLLeR-eyEd_14 Senior · 382 posts #7

mobileGIGS wrote: Add to ur htaccess

AddHandler application/x-httpd-php .html AddHandler application/x-httpd-php .htm

to use different file type, change .html to whatever eg .lol, .wap, .fcker

when u create files wit .html they can be processed as php. Easy.

or if u want 2 uninclude extensions but will run in php.,for example index.php..u want to remove .php extension from it and will still run in php..Then rename it from index.php to index..Put this in ur htaccess..

<Files index> ForceType application/x-httpd-php </Files>

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close