By default, I have an attachment page URL:
http://example.lt/photo/juokingi-pokalbiai-22-nuotraukos/attachment/221/
I want have:
http://example.lt/photo/juokingi-pokalbiai-22-nuotraukos/gallery/221/
or:
http://example.lt/photo/juokingi-pokalbiai-22-nuotraukos/221/
or:
http://example.lt/photo/juokingi-pokalbiai-22-nuotraukos/img_name
Is it possible to rewrite the attached images URL?
In permalinks settings, I cant set additional URL only for tags and category, how about attachments?
Add this to your
.htaccess
in your web root/
directoryUnless, the image name also contains the attachment id; handling a URL like
/photo/juokingi-pokalbiai-22-nuotraukos/img_name
would not be possible.