- This topic has 5 replies, 2 voices, and was last updated 11 years, 10 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Begin building your web presence.
Startup® and StartupPro™ WordPress themes for startups. Why choose us?
Tagged: Hide Post From Google Search
If you just want to hide it from search engines, you can use a number of SEO plugins to noindex it, for example if you already have the following plugin installed, you can do it there:
http://wordpress.org/plugins/all-in-one-seo-pack/
If you want to password-protect a page you can do that from the page editor:
https://codex.wordpress.org/Using_Password_Protection
And more specifically:
https://codex.wordpress.org/Using_Password_Protection#Hiding_Password_Protected_Posts
There are of course .htaccess tricks we can use as well if none of these options suffice.
I am aware that posts can be hidden by using those 3 ways, but as for using .htaccess trick (I mean posts), I haven’t come across this yet. Is there any details post or tutorial of how to hide post using .htaccess ?
Thanks.
Say you wanted to block access to http://yourwebsite.com/your-page-slug-here/ you could try:
RewriteRule ^your-page-slug-here$ - [F]
Thanks.
You’re welcome.
