css,js access control
-
In relation to the Google mobile friendly push
If I was going to allow the robots access to the wp-content/themes, the wp-content/plugins and the wp/includes folders in robots.txt but add some x header meta no-index to the htaccess code through BPS, how would I syntax the code.Ex
robots.txt
Allow: /wp-content/uploads/
Allow: /wp-content/themes/*js?
Allow: /wp-content/themes/*css?
Allow: /wp-content/plugins/*js?
Allow: /wp-content/plugins/*css?ex htaccess code
<Files ~\/wp-content\/;>
Header set X-Robots-Tag “no-index”
</Files>Can all this be done through htaccess and stop messing with the robots.txt?
The topic ‘css,js access control’ is closed to new replies.