I have custom routes using routes everything works fine, my problem is when a media is inserted it always bypass my routing.

For example:

domain/route1/internal-id if there is any media that matches internal-id the domain/wp-uploads/internal-id.jpg is used. Not even a 404 shows.

Tried everything I could from my search (example: Disable Attachment Pages Completely). don't know what to try more, any suggestions?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.