![]() |
|
|
|
||||||||||
![]() |
|
|
Thread Tools |
|
#1
|
||||
|
||||
|
.htaccess, AddType application/x-httpd-php .php .htm .html, and maybe a Fix...
Hi, After about 24 Hours of Trial and Error I finally got my site Validated.
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.. LegalClips.com |
|
#2
|
||||
|
||||
|
Thanks, i would try this
|
|
#3
|
|||
|
|||
|
Try adding that code lines in apache.httpd.conf
<IfModule mod_mime.c> AddType application/x-httpd-php .php AddType application/x-httpd-php .phtml AddType application/x-httpd-php .php3 AddType application/x-httpd-php .php4 AddType application/x-httpd-php .html AddType application/x-httpd-php-source .phps </IfModule> Save it and restart apache with command : apachectl restart you have more info at http://bugs.php.net/bug.php?id=27580 |
|
#4
|
||||
|
||||
|
Anyone with cpanel can add that command there, no need to mess around with the .htaccess since that darn file can make your site not load at all if you don't do it right
|
|
#5
|
||||
|
||||
|
I was having this same problem. This fix did not work for me. bummer, still stuck on this.
|
|
#6
|
|||
|
|||
|
here's another option along those lines:
instead of: addtype application/x-httpd-php .html try: <FilesMatch "\.(htm|html|php)$"> SetHandler application/x-httpd-php </FilesMatch> |
|
#7
|
|||
|
|||
|
For anyone on Godaddy (or another host) having trouble getting php to parse within html with .htm extension I finally found the problem:
.htaccess is: AddType application/x-httpd-php .php .htm .html AddHandler x-httpd-php .php .htm .html Delete old .htaccess - don't overwrite. Upload new .htaccess in ascii mode and chmod 777 Done! |
|
#8
|
||||
|
||||
|
i need some help here too
i saw on someone site actually the script is php files but using code like this
AddType application/x-httpd-php .jsp he mask all the .php files to .jsp, i mean just for fun sake i want to try out but i put in on my htaccess didnt work, i got two server, hostgator and lunarpages both are using susphp enviroment, any idea if some knows how to mask? |
|
#9
|
|||
|
|||
|
Quote:
I have cpanel through hostgator. I have uploaded the php file by creating a txt file and renaming it with the .php extention but I still cannot get the .htaccess to work. I tried doing the same thing using a .txt file but it wont work, it will not display the page unless I delete the .htaccess file. You said there is a way to do it in cpanel but I cant figure it out. Can you explain how you did it? |
|
#10
|
||||
|
||||
|
Well you won't get any response from Fryman since that post was made in March last year and he's been banned for ages.
__________________
Automatic Myspace Proxy - Auto Bypass - Automatic Myspace Proxy |
|
#11
|
|||
|
|||
|
Help! Re. .htaccess, AddType application ...
I have the following .htaccess file, uploaded to the correct place:
AddType application/x-httpd-php .php .htm .html .wml AddType text/x-httpd-php .php .htm .html .wml (after reading a few posts, apparently this should help) AddHandler x-httpd-php .php .htm .html .wml (after reading a few posts, apparently this also should help) However, .php files download and .wml files (when viewed on Wapsilon.com) return a "expected text/vpn.wap.wml not application/x-httpd-php". Any ideas? Last edited by bsutcliffe; May 25th 2008 at 10:27 am. Reason: Grammar |
|
#12
|
|||
|
|||
|
try this line in a blank .htaccess
AddType application/x-httpd-php php html |
|
#13
|
|||
|
|||
|
the codes work great for lunapage host.
|
|
#14
|
|||
|
|||
|
Quote:
Thanks a lot for that post! It worked for me like magic after about 2 hours of screwing around and even calling support at Backlinks.com. Then I found your post and BINGO! Thanks a million. It works like a charm now!
|
|
#15
|
||||
|
||||
|
hey thanks for the info
i also face the same errors http://www.honeytechblog.com/images/error.jpg not fix the server was upgraded and there were incompatible lines in the .htaccess are also fixed. www.honeytechblog.com works perfectly now. For all who have hosting on Hostgator,Godaddy and similar cpanel Please contact your support team, they will easily resolve your issues. ThankYou |
|
#16
|
|||
|
|||
|
VanShake.... Thankyou very much...
After trying everything, yours was the only solution that worked..... Thanks heaps Marc |
|
#17
|
|||
|
|||
|
how about wordpress blog ,can somebody having success install this ads and validate ,give explain simple and easy
|
|
#18
|
|||
|
|||
|
Quote:
And sometimes it's better using php5-script instead of x-httpd-php5. |
|
#19
|
||||
|
||||
|
But for php4 is it php4-script or php-script?
|
|
#20
|
||||
|
||||
|
Silly me, I've double posted .... Can a mod delete this? Thanks
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|