Redirecting image files
4 posts
• Page 1 of 1
Redirecting image files
Hi,
I have 400+ jpg images in a folder that are causing errors in Google WMT because they have spaces. I've renamed the images, replacing the spaces with underscores, but have no idea how to add a rewrite rule that forces the URL to go to the new file.
The folder structure is <domain>/admin/photos/large/. So, for example, I'd like <domain>/admin/photos/large/keep net.jpg to get redirected to <domain>/admin/photos/large/keep_net.jpg.
Can anyone help? I can do basic redirects but this one has me stumped.
Cheers
I have 400+ jpg images in a folder that are causing errors in Google WMT because they have spaces. I've renamed the images, replacing the spaces with underscores, but have no idea how to add a rewrite rule that forces the URL to go to the new file.
The folder structure is <domain>/admin/photos/large/. So, for example, I'd like <domain>/admin/photos/large/keep net.jpg to get redirected to <domain>/admin/photos/large/keep_net.jpg.
Can anyone help? I can do basic redirects but this one has me stumped.
Cheers
Re: Redirecting image files
Hello,
Please try the following rule:
RewriteBase /
RewriteRule ^admin/photos/large/keep\ net\.jpg$ /admin/photos/large/keep_net.jpg [NC,R=301,L]
Please try the following rule:
RewriteBase /
RewriteRule ^admin/photos/large/keep\ net\.jpg$ /admin/photos/large/keep_net.jpg [NC,R=301,L]
- annashetty
- Posts: 5
- Joined: 14 Sep 2017, 23:30
Re: Redirecting image files
If u need a free photoshop alternative that give you a productive solution, photoshop online will be a great option. A free photos edit includes all the basic features as well as the extra bells and whistles that most people need to photoshop and enhance their photos and images.
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 14 guests