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

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

By madnutter, 10 years ago. Last reply by Magus, 10 years ago.
Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 1 month ago madnutter

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

  2. 10 years, 1 month ago madnutter

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

  3. 10 years, 1 month ago madnutter

    Ok break down

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

  4. 10 years, 1 month ago madnutter

    Actually Affecting all menu icons

  5. 10 years, 1 month ago Magus
    Hi, I Work Here

    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. 10 years, 1 month ago madnutter

    Hi Magus,

    Its worked a treat.

    Thanks very much.

  7. 10 years, 1 month ago Magus
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More