• Resolved ac2017

    (@ac2017)


    Hello. Is it possible to create a HTACCESS file so I can make a folder and its contents password protected using the Ultimate Member plugin?

    I was using the code below but its not working anymore.

    RewriteEngine On RewriteCond %{HTTP_REFERER} !^https://(www.)?cortecmci.com/
    RewriteCond %{REQUEST_URI} !hotlink.(doc|xls|xlsx|docx|mp4|mov|pdf)
    RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$
    RewriteRule .*.(doc|xls|xlsx|docx|mp4|mov|pdf)$ https://www.cortecmci.com/

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @ac2017

    UM doesn’t create/generate code for the htaccess. This requires customization on your end. Have you tried adding the code in your htaccess file?

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @ac2017

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. 🙂

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Files restriction’ is closed to new replies.