Tagged: .htaccess, robots.txt
-
AuthorPosts
-
May 6, 2017 at 2:35 pm #788836
Hello, i just have sold enfold theme. But before i edit my website. a lot of theme folder got indexed by google. you can see site:sitename.com. for example ……com\wp-content/themes/enfold/config-layerslider/ or ….. com /wp-content/themes/enfold/framework/php/avia_shortcodes/img/?DD
Why does it originate? How can solve this problem?
May 6, 2017 at 6:43 pm #788882Hey mstfmhc,
I was going to tell you about Robots.txt and “disallow” but looking at your Robots.txt you seem to have some good rules there, but why would you want this:Allow: /wp-admin/admin-ajax.php Allow: /wp-content/uploads
I would disallow them.
The problem you have now is you are open to being hacked, please add this to your .htaccess file to disallow folder view, “Index of”:Options -Indexes
You can also try to request a removal from Google: https://www.google.com/webmasters/tools/removals
Best regards,
MikeMay 12, 2017 at 12:50 am #791980Should i make
Disallow: /wp-admin/admin-ajax.php
Disallow: /wp-content/uploads ?And i will try to add .htacces file to disallow folder.
May 12, 2017 at 2:15 am #791994Hi,
Please don’t “i will try to add .htacces file to disallow folder.”
just add “Options -Indexes” to the top line.
in your robots.txt, I would make those two lines disallow.Best regards,
MikeMay 14, 2017 at 6:13 pm #793034hi can you check is it ok? i added “Options -Indexes” to my .htaccess but i can reach my index of
May 14, 2017 at 6:46 pm #793042May 14, 2017 at 8:05 pm #793058i wrote but can you tell me how did you do. cause i have same problem my other website.
May 14, 2017 at 9:38 pm #793083Hi,
I have not had this error before, my research shows that it’s an server error which needs to be fixed my your host. Please check with them and let us know the outcome.You should check that the Apache config allows for the .htaccess to be executed. In your virtualhost config, there should be a line:
AllowOverride All
If there isn’t, that’s why the .htaccess isn’t taking effect.Best regards,
MikeMay 17, 2017 at 7:23 pm #795044hello thanks for your help. i wrote my hosting corp. and said that they detected troble my hosting. and fixed it.
May 18, 2017 at 1:40 am #795184 -
AuthorPosts
- The topic ‘unnecessary index problem’ is closed to new replies.