This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Hiding WP-Content from browsing also stops search menu icon from displaying

Resolved 7 replies premiumthemetheme-vantage
10 years ago · Last reply by Magus 10 years ago

Hi, Using the a .htaccess file within the wp-content folder to stop the public browsing the folder but this also affects the search icon that i have placed on the top menu (no longer displaying just a square box)

Order Allow,Deny
Deny from all
 Allow from all

Any ideas how i can resolve this?
(Unfortunately the site is not public yet so cannot send a link)

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

7
  1. madnutter 10 years, 10 months ago

    not sure why the code box does not display the following but this sits in the middle

  2. madnutter 10 years, 10 months ago

    I think i’ll talk to myself but let see if quotes work to show the missing line.. “”

  3. madnutter 10 years, 10 months ago

    Ok break down

    Files ~ “\.(css|
    jpe?g|
    png|
    xsl|
    gif|i
    co|js)$”

  4. madnutter 10 years, 10 months ago

    Actually Affecting all menu icons

  5. Magus Staff 10 years, 10 months ago

    Hi Madnutter

    Please try altering your .htaccess file to read

    Order deny,allow
        Deny from all
        <Files ~ ".(xml|css|jpe?g|png|gif|js|eot|woff|otf|ttf|svg)$">
        Allow from all
        </Files>

    Let us know how you get on

    Magus

  6. madnutter 10 years, 10 months ago

    Hi Magus,

    Its worked a treat.

    Thanks very much.

  7. Magus Staff 10 years, 10 months ago

    Perfect. Glad to help

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread