| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| matc -
 
 
 Joined: 27 Sep 2006
 Posts: 8
 
 
 | 
			
				|  Posted: Wed Sep 27, 2006 5:58 am    Post subject: PHP files with NO extension -  How? |   |  
				| 
 |  
				| I just started using abyss today, I'm already in love.  Coming from apache, I am a bit frustrated that you cannot use .htaccess though. 
 I am wanting to know how to make abyss execute php files with no extention (instead of "page.php" its "page").  In apache, this was done with the following code added into .htaccess
 
 
  	  | Code: |  	  | <Files ~ "^[^\.]+$"> SetHandler application/x-httpd-php
 </Files>
 
 | 
 
 Basically it says that if there is no ending to a file, it treats that file as a php file.  Is this possible with abyss? I have tried adding a blank php mime type, but that wasen't allowed.
 
 Help is appreciated!
 |  | 
	
		| Back to top |     | 
	
		|  | 
	
		| TRUSTAbyss -
 
 
 Joined: 29 Oct 2003
 Posts: 3752
 Location: USA, GA
 
 | 
			
				|  Posted: Wed Sep 27, 2006 11:50 am    Post subject: |   |  
				| 
 |  
				| Hi matc, 
 Apache seems to only follow this MIME Type because it is the way it checks for
 PHP files. Abyss Web Server looks at a pattern like "/*.php" to see if it should
 execute the file as a CGI application.
 
 Infact, all PHP files should be checked by their extension.
 
 I know why you need this though. The next version of Abyss Web Server will
 include "URL Rewriting" from what we were told. You can use this new feature
 to create these "Search Engine" friendly pages.
 
 Sincerely, Josh (TRUSTAbyss)
 |  | 
	
		| Back to top |       | 
	
		|  | 
	
		|  |