On my 1.0.7.11 site I use a robots.txt text file to try to control the bots as best as that file can. I notice that in the later versions of Phoenix there is a ht_robot_noindex.php headertag module.
Can this file be used on older versions if the robots.txt file is removed.
I only ask as I was reading on google search console that its better to noindex that to use robots.txt.
What would be the worse thing that could happen if I tried.
robots.text or noindex
-
ecartz
- Core Team
- Posts: 3084
- Joined: Tue Nov 05, 2019 6:02 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 208 times
Re: robots.text or noindex
1. They do different things. Robots.txt gives directions to robots as to how crawl your site. The noindex tells search indexes not to include a page. If you want to not include a page in search indexes, you should use noindex. But if you want to control how robots crawl the site other than not indexing a page, you should use robots.txt.
2. You can use both at once. You don't have to remove the robots.txt in order to use noindex.
3. ht_robot_noindex.php was in Gold and osC (not new in Phoenix): https://github.com/osCommerce/oscommerc ... oindex.php
4. You can only use header tag modules on pages in the cart. They won't work on image files and other static content.
2. You can use both at once. You don't have to remove the robots.txt in order to use noindex.
3. ht_robot_noindex.php was in Gold and osC (not new in Phoenix): https://github.com/osCommerce/oscommerc ... oindex.php
4. You can only use header tag modules on pages in the cart. They won't work on image files and other static content.
- burt
- Core Team
- Posts: 4561
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 413 times
Re: robots.text or noindex
That noindex module will show something like;
in the underlying code (source code) on pages that you set. Once you have set those pages, visit a few of your important pages that you have NOT set to noindex, eg index.php / product_info.php
That line of underlying code should NOT appear on pages that you have NOT set it to show on. If it does show on any pages that you have NOT set it to show on, there will be complications down the line (eg google deindexing important pages).
Hope that all makes sense ?
Code: Select all
<meta name="robots" content="noindex,follow" />That line of underlying code should NOT appear on pages that you have NOT set it to show on. If it does show on any pages that you have NOT set it to show on, there will be complications down the line (eg google deindexing important pages).
Hope that all makes sense ?
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
14Steve14
- Senior Contributor
- Posts: 923
- Joined: Fri Oct 25, 2019 7:01 pm
- Phoenix Version: v1.0.9.1
- Has thanked: 17 times
- Been thanked: 103 times
Re: robots.text or noindex
Cheers Gary. That will give me something to do tomorrow.burt wrote: ↑Tue Sep 13, 2022 4:28 pm That noindex module will show something like;
in the underlying code (source code) on pages that you set. Once you have set those pages, visit a few of your important pages that you have NOT set to noindex, eg index.php / product_info.phpCode: Select all
<meta name="robots" content="noindex,follow" />
That line of underlying code should NOT appear on pages that you have NOT set it to show on. If it does show on any pages that you have NOT set it to show on, there will be complications down the line (eg google deindexing important pages).
Hope that all makes sense ?
-
lecarlb
- Contributor
- Posts: 316
- Joined: Mon Oct 26, 2020 5:26 pm
- Phoenix Version:
- Has thanked: 48 times
- Been thanked: 9 times
Re: robots.text or noindex
@burt I have a question. For pages that are NOT checked but still receive a noindex from Google, what could be the cause? And what would be a fix? Here's an example:14Steve14 wrote: ↑Tue Sep 13, 2022 5:28 pmCheers Gary. That will give me something to do tomorrow.burt wrote: ↑Tue Sep 13, 2022 4:28 pm That noindex module will show something like;
in the underlying code (source code) on pages that you set. Once you have set those pages, visit a few of your important pages that you have NOT set to noindex, eg index.php / product_info.phpCode: Select all
<meta name="robots" content="noindex,follow" />
That line of underlying code should NOT appear on pages that you have NOT set it to show on. If it does show on any pages that you have NOT set it to show on, there will be complications down the line (eg google deindexing important pages).
Hope that all makes sense ?
Code: Select all
https://mysite.com/cuba-jungle-snake-by-fragluxe-eau-de-parfum-spray-115-oz-for-women-fragluxe-fragluxe-403004-55938-pr-4994.htmlThanks.
- burt
- Core Team
- Posts: 4561
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 413 times
Re: robots.text or noindex
I don't know. It does sound like the redirect to "login" would be the issue as if that is happening it does mean that Google would be redirected to login as well (therefore would never see the page as google would not be able to actually login). That would be the first thing to solve.lecarlb wrote: ↑Thu May 25, 2023 7:09 am @burt I have a question. For pages that are NOT checked but still receive a noindex from Google, what could be the cause? And what would be a fix? Here's an example:That's a review page. When I clicked on the link it took me to the login page. I'm guessing it has something to do with guess writing/viewing reviews.Code: Select all
https://mysite.com/cuba-jungle-snake-by-fragluxe-eau-de-parfum-spray-115-oz-for-women-fragluxe-fragluxe-403004-55938-pr-4994.html
After that is solved, if the "no index" is still happening;
Phoenix doesn't have Review pages, so if it is an addon, it could be a problem in the addon.
or
It could be a problem in the URL rewriting addon (very unlikely, but you never know).
In any case, the first thing to solve would be that redirect to login. It's likely to be a line of code near the top of the review page, depending on Phoenix version it might look like this;
Code: Select all
if (!tep_session_is_registered('customer_id')) {
$navigation->set_snapshot();
tep_redirect(tep_href_link('login.php', '', 'SSL'));
}
Or if a more modern version, something like this;
Code: Select all
$OSCOM_Hooks->register_pipeline('loginRequired');I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.