Page 1 of 1

About the noindex module

Posted: Sat Oct 17, 2026 9:32 am
by cerberus
Hi,

Can I add extra pages to the noindex module ? there are a couple of pages I dont want indexed, but I cannot see a way to add extra pages to the noindex module.

I see the file is called ht_robot_noindex.php ? can I add extra pages to that ? or can I add the pages I dont want indexed to the database as the ht_robot_noindex.php seems empty (the pages ticked in the back office do not show on it, so I presume they are in another file or the database ?)

There are a couple of extra pages I dont want indexed and the footer information links module.

Also I dont think te noindex module is working correctly ? or maybe I am missing something ? the reason I say that (for instance) is my "terms and conditions" page is showing on google (conditions.php is ticked for noindex in the noindex module) see images below.

Screenshot 2026-10-17 122643.png
Screenshot 2026-10-17 122755.png

I have used the "Google Search Console" to remove the urls I dont want indexed (that have been indexed) but I presume they will come back at some point as it says on the Google console removal is only temporary.


Thank you,

Re: About the noindex module

Posted: Sat Oct 17, 2026 12:28 pm
by Dan Cole
To see if it is working have a look at what gets included in your robots.txt file that should be in your sites root directory. You should see something like...

Disallow: /conditions.php

Dan

Re: About the noindex module

Posted: Sat Oct 17, 2026 12:50 pm
by cerberus
Hi Dan,

I did look for a robots text file, but I dont seem to have one, when checking on the internet it says its only for sites that are in the root. I have installed Phoenix cart into a folder, so maybe that is why I dont have one ? (I have checked the folder I installed the shop into and the root, but their is no robots text file there).

I have just made a robots txt and uploaded it as a experiment.
I have also asked google (in the console) to re crawl to get the robots txt file.

I have the shop installed in :
https://XXXXXX.com/shop/

So as the instructions say the robots txt must be in the root I uploaded it to https://XXXXXX.com/ (not in the folder I installed the shop into)

I presume the above is correct ?

As I have phoenix cart installed into a folder and the robots txt file in the root (folder before the folder the shop is installed in, should I write in the robots txt file like this :

Disallow: /conditions.php/
Or like this :
Disallow: /shop/conditions.php/

(I hope the above makes sense)

However it also says on the internet instructions a robots txt file will not stop pages from being indexed, for pages not to be indexed pages need the "noindex" tag/code ?

Thank you.

Re: About the noindex module

Posted: Sat Oct 17, 2026 3:32 pm
by Dan Cole
My shop is in a folder too but the robot.txt is in the root.

This is an interesting question but I don't know what the right answer is...let me see what AI says.
Disallow: /conditions.php/
Or like this :
Disallow: /shop/conditions.php/
AI says...

To disallow a file located in a subfolder from your root robots.txt file, you must reference it using its full path relative to the site root, starting with a leading forward slash (/).

Syntax Example:
If your subfolder is named subfolder and your file is secret-file.html, the rule looks like this:
text
User-agent: *
Disallow: /subfolder/secret-file.html

Comment from me: If you are indeed using trailing "/"s they should probably be removed.

AI also gave me a summary and the last item leads me to believe that your conditions file is going to be indexed anyway since I'm sure it's linked to from other pages on your site. I think I would forget about that. What is the harm if it gets indexed?

Key Rules to Keep in Mind:
• Start with a slash: Always lead with a forward slash (/) representing the root of your domain.
• Include the folder tree: Write the complete path down to the file (e.g., if your file is secret.pdf inside docs/reports/, write Disallow: /docs/reports/secret.pdf).
• Case-sensitivity: Paths in robots.txt are case-sensitive, so match the exact uppercase and lowercase letters of your folders and file name.
• Crawling vs. indexing: A Disallow rule stops search engines from crawling the file, but if external sites link to it, the URL might still appear in search results.

Now I'm wondering why my robots.txt file doesn't reference my subfolder.

Dan

Re: About the noindex module

Posted: Sat Oct 17, 2026 3:52 pm
by ecartz
https://github.com/CE-PhoenixCart/Phoen ... oindex.php

You can install that module and configure it to not index files you don't want indexed. Note that unlike robots.txt, you want the bare page names: conditions.php rather than shop/conditions.php

Google and Bing also offer tools that allow you to check what pages are indexed and remove the ones that you don't want. You probably want to do all three things: add to robots.txt; configure noindex; remove from the search consoles for your site. The robots.txt keeps from being indexed directly; noindex avoids being indexed when linked; the search console removes pages that were already indexed.

If you don't think that module is working, you can look at the HTML directly on the conditions page. Does it say noindex or not? If it says it, but Google/Bing is not respecting it, then they're what's not working. If you sign up for their search consoles, you might find out why they're not working.

Since you say that you've already signed up for them, removing in the search console may be the secret sauce. If the pages were indexed *before* you added noindex, then the noindex would not remove them. You remove them in the console. The noindex keeps them from being indexed in the future. The robots.txt keeps them from being indexed directly.

Re: About the noindex module

Posted: Sat Oct 17, 2026 4:39 pm
by cerberus
Thankyou Dan and ecartz for your replies,

More for me to learn about :)
I will start looking into it later.

I just looked at the module you recommended on Github, when I can work out how to download it I may give it a try, I thought I had it but it just downloaded one php page, I presume it should have more ? (I am still new to all this)

At the moment I have included the folder the shop is installed into in the robots txt file, and removed the slash at the end, it now looks like this :

Disallow: /shop/conditions.php

And for folders (I have two, the admin folder and the footer folder) I have done this :

Disallow: /footer/

So I suppose time will tell :)

Thank you both again.
Steve

Re: About the noindex module

Posted: Sat Oct 17, 2026 5:08 pm
by Dan Cole
ecartz wrote: ↑Sat Oct 17, 2026 3:52 pm https://github.com/CE-PhoenixCart/Phoen ... oindex.php

You can install that module and configure it to not index files you don't want indexed. Note that unlike robots.txt, you want the bare page names: conditions.php rather than shop/conditions.php

Google and Bing also offer tools that allow you to check what pages are indexed and remove the ones that you don't want. You probably want to do all three things: add to robots.txt; configure noindex; remove from the search consoles for your site. The robots.txt keeps from being indexed directly; noindex avoids being indexed when linked; the search console removes pages that were already indexed.

If you don't think that module is working, you can look at the HTML directly on the conditions page. Does it say noindex or not? If it says it, but Google/Bing is not respecting it, then they're what's not working. If you sign up for their search consoles, you might find out why they're not working.

Since you say that you've already signed up for them, removing in the search console may be the secret sauce. If the pages were indexed *before* you added noindex, then the noindex would not remove them. You remove them in the console. The noindex keeps them from being indexed in the future. The robots.txt keeps them from being indexed directly.
Thanks Matt. I learned something too....I didn't realize those were two different things. I probably won't remember in the future but for today I learned something new. :D

Dan

Re: About the noindex module

Posted: Sat Oct 17, 2026 8:12 pm
by cerberus
I now realise the link to the module above is not a new module, it is the one already installed, is that correct ? (and it is a single page)

Re: About the noindex module

Posted: Sat Oct 17, 2026 9:48 pm
by Dan Cole
cerberus wrote: ↑Sat Oct 17, 2026 8:12 pm I now realise the link to the module above is not a new module, it is the one already installed, is that correct ? (and it is a single page)
I looked at it too and it is the module that comes with Phoenix. It controls what pages no index is added to. ie. which ones get <meta name="robots" content="noindex,follow" /> added to them. The robots.txt file is for site owners to specify which pages the search engines should exclude from the index in the first place. I think Matt does an excellent job of explaining the differences. If you are still trying to exclude that conditions.php you might want to add it to the listing shown in the file that Matt pointed to as well as to the robots.txt file.

Dan

Re: About the noindex module

Posted: Sat Oct 17, 2026 10:17 pm
by cerberus
yes, i also signed up to bing webmaster tools so I can add my site to bing.
Also I think I have the robots text site sorted now, I guess time will tell.