• Hello guys

    i have on my .htaccess that

    RewriteRule (.*)wp-content/uploads/(.*)/(.*) $1watermark.php?p=br&q=90&src=wp-content/uploads/$2/$3##

    and work on the first site.

    On the second site pictures are broken, but if i deactive the line, pics works on 1 and 2 site but no watermark ??

    i try to do that:

    RewriteRule (.*)second/wp-content/uploads/(.*)/(.*) $1watermark.php?p=br&q=90&src=wp-content/uploads/$2/$3##

    and works, but i do that:

    RewriteRule (.*)wp-content/uploads/(.*)/(.*) $1watermark.php?p=br&q=90&src=wp-content/uploads/$2/$3##

    RewriteRule (.*)second/wp-content/uploads/(.*)/(.*) $1watermark.php?p=br&q=90&src=wp-content/uploads/$2/$3##

    stop working ??

    What can i do?

    Thank you ??

Viewing 1 replies (of 1 total)
  • @andrea Mantra
    Sorry for the delay in response. It has been a busy week for the WP community. I am not too familiar with the .htaccess and multisite but by glancing at the rewrite working for your first site and not the site looks to be relative and not absolute. I have not tested my theory but if you visit your second site (assuming you are using sub directories) your writes will be appending to your url (since it is relative). I think you are looking for something as simple as

    RewriteRule (.*)/wp-content/uploads/(.*)/(.*) $1watermark.php?p=br&q=90&src=wp-content/uploads/$2/$3##
Viewing 1 replies (of 1 total)
  • The topic ‘Watermark on multisite’ is closed to new replies.