linux:web:apache.rewrite
Diferencias
Muestra las diferencias entre dos versiones de la página.
| linux:web:apache.rewrite [2018/12/06 15:37] – creado grillo | linux:web:apache.rewrite [2018/12/06 15:37] (actual) – editor externo 127.0.0.1 | ||
|---|---|---|---|
| Línea 3: | Línea 3: | ||
| Redireccionar todo a HTTPS | Redireccionar todo a HTTPS | ||
| - | {{{ | + | ``` |
| - | RewriteCond %{HTTPS} off | + | RewriteCond %`HTTPS` off |
| - | RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] | + | RewriteRule ^/?(.*) https://%`SERVER_NAME`/$1 [R,L] |
| - | }}} | + | ``` |
| Si el archivo no existe redireccionar a index.php | Si el archivo no existe redireccionar a index.php | ||
| - | {{{ | + | ``` |
| - | RewriteCond %{REQUEST_FILENAME} !-f | + | RewriteCond %`REQUEST_FILENAME` !-f |
| - | RewriteCond %{REQUEST_FILENAME} !-d | + | RewriteCond %`REQUEST_FILENAME` !-d |
| - | RewriteCond %{REQUEST_FILENAME} !-l | + | RewriteCond %`REQUEST_FILENAME` !-l |
| RewriteRule .* index.php [L] | RewriteRule .* index.php [L] | ||
| - | }}} | + | ``` |
linux/web/apache.rewrite.1544110623.txt.gz · Última modificación: 2018/12/06 15:37 por grillo