Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have approximately 5,000 PDF files in 4 different categories on our Joomla website that are currently only accessible by via a PHP/mySQL seach script. The filenames (which are numbers) and file locations are stored in a mySQL db and there is a simple PHP script that sends the query and returns a hyperlink to the correct file. The seach is based on a user typing in a number which corresponds to the filename (people using this will know what the number represents - it's a legal case number).

I'd love for the files to be accessible via a google search but I'm not clear about how to make google find them. Should I just create a text page for each of the 4 categories which contain the links to each of the files and make those easily accessible by google's search?

share|improve this question

migrated from stackoverflow.com Dec 20 '13 at 18:27

This question came from our site for professional and enthusiast programmers.

This question appears to be off-topic because it is about SEO – John Conde Dec 20 '13 at 13:45
There a few different ways to approach this. Yes, an XML sitemap is the goal, but how to build the sitemap? There are two basic methods I think: 1) write some php code or use a joomla plugin that will output all the db records (php file locations of the pdfs) into a sitemap and 2) all the pdfs must be in directories - put that directory in a sitemap or use an oneline sitemap tool to generate it. – ssaltman Dec 20 '13 at 14:22
The file locations of the pdf's are independent of the joomla site - in their own db and unknown to the joomla db. So it appears your second solution is the best way. – Roberto Dec 20 '13 at 14:34
up vote 5 down vote accepted

Just add them to your XML sitemap. It's more than for HTML files.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.