.htaccess mastering
This commit is contained in:
		@@ -1,16 +1,11 @@
 | 
				
			|||||||
RewriteEngine On
 | 
					RewriteEngine On
 | 
				
			||||||
RewriteBase /vasek/home-update/
 | 
					DirectoryIndex ./public/
 | 
				
			||||||
DirectoryIndex ./public/index.php
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
RewriteCond %{REQUEST_FILENAME} !-f
 | 
					RewriteCond %{REQUEST_FILENAME} !-f
 | 
				
			||||||
RewriteCond %{REQUEST_FILENAME} !-d
 | 
					RewriteCond %{REQUEST_FILENAME} !-d
 | 
				
			||||||
RewriteCond %{REQUEST_FILENAME} !.css
 | 
					RewriteRule (.*) ./public/index.php?url=/$1 [QSA,L]
 | 
				
			||||||
RewriteCond %{REQUEST_FILENAME} !.js
 | 
					 | 
				
			||||||
RewriteRule (.*) ./public/index.php?url=$1 [QSA,L]
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
RewriteCond %{HTTPS} off
 | 
					RewriteCond %{HTTPS} off
 | 
				
			||||||
RewriteCond %{REQUEST_FILENAME} !api.php
 | 
					 | 
				
			||||||
RewriteCond %{REQUEST_FILENAME} !apiFront.php
 | 
					 | 
				
			||||||
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 | 
					RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
AddType application/x-httpd-php .php .phtml
 | 
					AddType application/x-httpd-php .php .phtml
 | 
				
			||||||
@@ -18,9 +18,9 @@
 | 
				
			|||||||
<meta charset="UTF-8">
 | 
					<meta charset="UTF-8">
 | 
				
			||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
					<meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
				
			||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
 | 
					<meta http-equiv="X-UA-Compatible" content="ie=edge">
 | 
				
			||||||
<link rel="stylesheet" href="./app/templates/css/main.css?v2">
 | 
					<link rel="stylesheet" href="./css/main.css?v2">
 | 
				
			||||||
<link rel="stylesheet" href="./app/templates/css/font-awesome.min.css">
 | 
					<link rel="stylesheet" href="./css/font-awesome.min.css">
 | 
				
			||||||
<link rel="stylesheet" href="./app/templates/css/modal.css">
 | 
					<link rel="stylesheet" href="./css/modal.css">
 | 
				
			||||||
<link rel="stylesheet" href="./app/templates/css/pre.css">
 | 
					<link rel="stylesheet" href="./css/pre.css">
 | 
				
			||||||
<link rel="stylesheet" href="./app/templates/css/loading.css">
 | 
					<link rel="stylesheet" href="./css/loading.css">
 | 
				
			||||||
<link rel="stylesheet" href="./app/templates/css/override.css">
 | 
					<link rel="stylesheet" href="./css/override.css">
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										15
									
								
								public/.htaccess
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								public/.htaccess
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					RewriteEngine On
 | 
				
			||||||
 | 
					DirectoryIndex ./index.php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RewriteCond %{REQUEST_FILENAME} !-f
 | 
				
			||||||
 | 
					RewriteCond %{REQUEST_FILENAME} !-d
 | 
				
			||||||
 | 
					RewriteCond %{REQUEST_FILENAME} !.css
 | 
				
			||||||
 | 
					RewriteCond %{REQUEST_FILENAME} !.js
 | 
				
			||||||
 | 
					RewriteRule (.*) ./index.php?url=$1 [QSA,L]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RewriteCond %{HTTPS} off
 | 
				
			||||||
 | 
					RewriteCond %{REQUEST_FILENAME} !api.php
 | 
				
			||||||
 | 
					RewriteCond %{REQUEST_FILENAME} !apiFront.php
 | 
				
			||||||
 | 
					RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					AddType application/x-httpd-php .php .phtml
 | 
				
			||||||
		Reference in New Issue
	
	Block a user