Support » How-To and Troubleshooting » Need Rewrite Rule for Images after moving WP
10 years, 9 months ago
I need a rewrite rule so that images point to the right place.
I don’t know the syntaxis of rewrite rules, can someone post the rewrite rule for this?
I think this rule may work for you:
RewriteRule ^smith/images/(.*)$ /images/$1
It should redirect ANY request for /smith/images/ to /images/, so say: /smith/images/hi.gif -> /images/hi.gif. This assumes that the .htaccess will be in your root directory.
Thanks Michael! I will try it out, thanks for your answer, I appreciate it.