Skip to content

Instantly share code, notes, and snippets.

@Dimasmagadan
Last active December 31, 2017 13:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dimasmagadan/8184945 to your computer and use it in GitHub Desktop.
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
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://i.imgur.com/qX4w7.gif [L]
</IfModule>
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