Advertisement
erufenix_

Slim

Jun 8th, 2023 (edited)
960
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.48 KB | Help | 0 0
  1. 1. # En .env
  2.  
  3. SLIM_BASE_PATH=''
  4.  
  5. 2. # Crear un .htaccess en raíz con
  6.  
  7. ### Rewrite Rules Added by CyberPanel Rewrite Rule Generator
  8.  
  9. RewriteEngine On
  10. RewriteCond %{HTTPS}  !=on
  11. RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
  12.  
  13. ### End CyberPanel Generated Rules.
  14.  
  15. RewriteEngine on
  16. RewriteRule ^$ public/ [L]
  17. RewriteRule (.*) public/$1 [L]
  18.  
  19.  
  20. 3. # Crear un .htaccess en public con
  21.  
  22. RewriteEngine On
  23. RewriteCond %{REQUEST_FILENAME} !-f
  24. RewriteRule ^ index.php [QSA,L]
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement