• Resolved JJNW

    (@jjnw)


    Hello, excellent plugin. Works great.

    But I want to hide a directory called xxx in website/wp-content/uploads, so the url is actually website/wp-content/uploads/xxx

    I tried ^sharing/(.+) /website/wp-content/uploads/xxx/$1 [L,QSA] but that doesn’t work.

    Any other suggestions I could put in htaccess file to make it work?

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Maya

    (@tdgu)

    Hi,
    If I understand correctly, you need to access the files in /wp-content/uploads/xxx/ through the url
    --domain--/sharing/

    You can use the following rewrite:

    RewriteRule ^sharing/(.+) /wp-content/uploads/xxx/$1 [L,QSA]
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteRule ^wp-content/uploads/slider2/(.+) /index.php?wph-throw-404 [L]

    Still, within the HTML you still need to do the replacements to match the new url.

    Hope this makes sense.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘How do I hide a directory?’ is closed to new replies.