1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Can anybody help me out in Browsing Directory Problem?

Discussion in 'WordPress' started by umlove, Jul 19, 2012.

  1. #1
    Hello Everyone
    Below code I used in .htaccess to make all directories index.
    This code also makes my all pages as home page.

    # directory browsing
    Options All -Indexes

    Is there any code which only makes specific folders as indexes?

    Like I want to make
    wp-admin
    wp-include
    wp-content

    as indexes.
    SEMrush
    Can anybody help me out?
     
    umlove, Jul 19, 2012 IP
    SEMrush
  2. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #2
    This may work:

    Put the "Options -Indexes" in the root .htaccess. Then create a separate .htaccess in wp-admin/wp-include and put "Options +Indexes" in it.

    All indexing should be off except for those specified directories.
     
    mizaks, Jul 19, 2012 IP
  3. nufox

    nufox Peon

    Messages:
    749
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can get a lot of help in the official wordpress forum. There's plenty of wordpress codex over there.
     
    nufox, Jul 19, 2012 IP