i have a url like this http://example.com/blog/photos/photos/gallery/image/1.
And i need to remove the second photos folder. How do i remove the part using mod_rewrite and .htaccess?
For your interest /blog is my document root.
Thanks a lot for any suggestions, Steve
EDIT
You should know that the URLs being generated by Wordpress 3.0 und NextgenGallery.
http://example.com/blog is my document root. That means i have installed Wordpress into the folder blog.
The first slug after blog is the page i have my gallery associated with.
The second slug is the name of the album and could be renamed to everything you want. It is just a placeholder for my galleries. gallery is the name of the gallery.
Assuming you want to do a redirect:
RewriteRule ^/blog/photos/photos/(.*)$ /blog/photos/$1 [R]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With