Last active
December 31, 2017 13:00
-
-
Save Dimasmagadan/8184945 to your computer and use it in GitHub Desktop.
Rewrite for wp-content\uploads folder.To stop searching for images while working on local machine.Code to override site URL to work locally. #WordPress
This file contains 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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://i.imgur.com/qX4w7.gif [L] | |
</IfModule> |
This file contains 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
define('WP_DEBUG', true); | |
define ('FS_METHOD', 'direct'); | |
//define('DISALLOW_FILE_EDIT',true); | |
define('WP_HOME','http://wp'); | |
define('WP_SITEURL','http://wp'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment