paypal_ipn directory
@TEJAS
Can you please take a look at following thread and let me know if we have some solution to this.
https://wordpress.org/support/topic/paypal_ipn-directory/
Thanks
Comments (11)
-
-
reporter @Tejas,
So what should I tell to the client? Its not our issue?
-
@angelleye @olivergreen
It is not issue, It comes when search engine is indexing the site or crawling the site. Sometimes our site url in the wordpress is like www.domain.com/custom_post_type and it is considering as directory name. In our case, paypal_ipn is custom post type. and because of that crawlers may be showing them as directory.
We can remove that by adding special code in the wordpress plugin file / functions.php page
function noindex_for_paypal_ipn() { if ( is_singular( 'paypal_ipn' ) ) { echo '<meta name="robots" content="noindex, follow">'; } } add_action('wp_head', 'noindex_for_paypal_ipn');
Alternatively, you can make a robots.txt file at the base of your domain which tells them also not to index said page (crawlers are supposed to look for this file):
User-agent: * Disallow: /paypal_ipn
-
reporter @tejasm_itpath,
Thanks for the clarification. The reply is sent to the client, will post here again if there will be any questions.
-
repo owner @tejasm_itpath Isn't that noindexz-for_paypal_ipn() function something we should just be doing within the plugin core files? We never want that data being crawled or indexed at all, and in fact, it would be best to make those URLs not show up at all publicly.
-
repo owner @tejasm_itpath Please see my last response..??
-
@angelleye
Yes , we can add that in our plugin.
-
repo owner Would you agree that it makes sense to do so? If so, go ahead and do that in this issue please.
-
- changed status to duplicate
Duplicate of
#93. -
repo owner @kcppdevelopers Please see my comments in
#93. I'm curious if this is a better overall solution to avoid a bunch of 404's showing up in Google Webmaster Tools..?? Or even some other way to fix this with post type attributes in WP or something like that..?? -
repo owner - changed status to closed
- Log in to comment
@angelleye @olivergreen
We are not generating directory with paypal_ipn name But it is our custom post type for plugin. so I think custom post types show up as directories in the WP URL structure