Skip to content

Instantly share code, notes, and snippets.

@gergelypolonkai
Created April 27, 2015 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gergelypolonkai/47680bfa44eb29708f20 to your computer and use it in GitHub Desktop.
Save gergelypolonkai/47680bfa44eb29708f20 to your computer and use it in GitHub Desktop.
Redirect only non-existing files with Apache
RewriteEngine on
RewriteRule ^/$ http://172.16.72.131:8080/ [QSA,L,P]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/(.*) http://172.16.72.131:8080/$1 [QSA,L,P]
Order allow,deny
Allow from all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment