3

Can Google index rewriten URLs? I mean, if I have the link

<a href="http://mydomain.com/document">Grab the document!</a>

and if I instruct Apache to rewrite http://mydomain.com/document as http://mydomain.com/document.pdf or http://mydomain.com/download.php?file=document.pdf, will Google still be able to index the contents of the resulting PDF file?

5

Google sees the URL you publish. The rewrite happens in the background and is invisible to them. So as long as your URL is valid and the content you want can be reached with it Google will index it just fine.

  • Thank you very much. Will people, in this case, still be able to use the "filetype:pdf" switch to search for this particular document? – DotNetStudent Mar 11 '12 at 18:10
  • 2
    Yes since that URL will ultimately return a PDF. – John Conde Mar 11 '12 at 18:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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