| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.  You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us.  | 
		
		 
		![]()  | 
	
		
			
  | 	
	
	
		
		|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 Guest 
			
		
			
			
			
					Posts: n/a
				 
				
				
				
				 | 
	
	
	
	
		
			
			 what write in  .htaccess so can put php in html ? 
		
	
		
		
		
		
		
	
	 | 
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Too lazy to set a custom title 
			
		
			
			
			Join Date: Dec 2006 
				
				
				
					Posts: 23,400
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Code: 
	AddType application/x-httpd-php .html .htm 
				__________________ 
		
		
		
		
	
	i like waffles  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Guest 
			
		
			
			
			
					Posts: n/a
				 
				
				
				
				 | 
	
	|
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Too lazy to set a custom title 
			
		
			
			
			Join Date: Dec 2006 
				
				
				
					Posts: 23,400
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Then you've got some other restriction on your virtual account.. talk to your hosting support.  Why don't you just rename the file to .php instead?  Wouldn't that be a hell of alot easier? 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
		
			
		
		
	
	i like waffles  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Feb 2005 
				
				
				
					Posts: 2,438
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Doesnt it have something to do with AddHandler? 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Guest 
			
		
			
			
			
					Posts: n/a
				 
				
				
				
				 | 
	
	|
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Jan 2007 
				
				
				
					Posts: 247
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Ask your hoster about restrictions for .htaccess - does it works for your account? 
		
	
		
		
		
		
			
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Now choke yourself! 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Apr 2006 
				
				
				
					Posts: 12,085
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 AddType application/x-httpd-php .php .html 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Dec 2007 
				Location: Chatsworth, CA 
				
				
					Posts: 1,964
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Ideally it should be in your httpd.conf for apache but .htaccess might work as well if you don't have access to modify httpd.conf. 
		
	
		
		
		
		
			
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#10 | 
| 
			
			
			
			 Too lazy to set a custom title 
			
		
			
			
			Industry Role:  
				Join Date: May 2004 
				Location: West Coast, Canada. 
				
				
					Posts: 10,217
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 This is exactly what I use in my .htaccess for one of my virtual accounts and it works perfectly.. 
		
	
		
		
		
		
		
	
	AddHandler application/x-httpd-php .html  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |