Skip to content

Instantly share code, notes, and snippets.

View axlkun's full-sized avatar

Axel Andrés axlkun

View GitHub Profile
@axlkun
axlkun / .htaccess
Created November 11, 2023 21:06
.htaccess for Vuejs project to fix 404 routes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Forzar la navegación con HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Excluir la carpeta 'assets' de la redirección
RewriteCond %{REQUEST_URI} !^/assets/
@axlkun
axlkun / .htaccess
Last active November 11, 2023 21:03
.htaccess to host Laravel project on shared domain under structure root htdocs/
php_value display_errors Off
php_value mbstring.http_input auto
php_value date.timezone America/New_York
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule (.*) /public/$1 [L]