Last active
August 29, 2015 14:09
-
-
Save jruels/a0b227cd667cf291bab2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteCond %{REQUEST_FILENAME} !-d # If not an existing directory | |
RewriteCond %{REQUEST_FILENAME} !-f # If not an existing file | |
RewriteCond %{REQUEST_URI} \.(jpg)$ [NC] # If filename ends with .pdf or .cdr | |
RewriteRule ^(.*)$ http://docs.site.com/$1 [L,R] # Redirect the user to the other site | |
RewriteRule ^.*$ index.php [NC,L] # Redirect all other requests to index.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteRule ^.*\.swf$ /home [R=301,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Options +FollowSymlinks | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^(.+)\.jpg$ /$1.png [NC,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment