Skip to content

Instantly share code, notes, and snippets.

View josephelkhoury's full-sized avatar

Joseph El Khoury josephelkhoury

  • Lebanon
View GitHub Profile
@josephelkhoury
josephelkhoury / .htaccess
Created December 22, 2015 09:14 — forked from thoop/.htaccess
Official prerender.io .htaccess for Apache.
<IfModule mod_rewrite.c>
RewriteEngine On
# If requested resource exists as a file or directory
# (REQUEST_FILENAME is only relative in virtualhost context, so not usable)
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
# Go to it as is
RewriteRule ^ - [L]
# If non existent