Fixes for issues found testing first time setup in the different configurations. Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/68 Co-authored-by: Greg Sarjeant <greg@subcultureofone.org> Co-committed-by: Greg Sarjeant <greg@subcultureofone.org>
		
			
				
	
	
		
			24 lines
		
	
	
		
			645 B
		
	
	
	
		
			ApacheConf
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			645 B
		
	
	
	
		
			ApacheConf
		
	
	
	
	
	
| # Basic .htaccess for tkr on shared hosting
 | |
| # Place this file inside the tkr directory
 | |
| # e.g. if tkr is at /public_html/tkr/, this goes in /public_html/tkr/
 | |
| 
 | |
| # Enable mod_rewrite
 | |
| RewriteEngine On
 | |
| 
 | |
| # Set directory index
 | |
| DirectoryIndex public/index.php
 | |
| 
 | |
| # Block access to sensitive directories
 | |
| RewriteRule ^(storage|src|templates|config)(/.*)?$ - [F,L]
 | |
| 
 | |
| # Block access to hidden files
 | |
| RewriteRule ^\..*$ - [F,L]
 | |
| 
 | |
| # Block access to setup script
 | |
| RewriteRule ^tkr-setup\.php$ - [F,L]
 | |
| 
 | |
| # Route everything else through the front controller
 | |
| RewriteCond %{REQUEST_FILENAME} !-f
 | |
| RewriteCond %{REQUEST_FILENAME} !-d
 | |
| RewriteRule ^(.*)$ public/index.php [L]
 |