Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Robots.txt with mod rewrite

Quote Reply
Robots.txt with mod rewrite
I have mod write to make my dynamic pages static, unfortunately, my robots.txt file is not showing and I keep getting the error message


Oops, we had the following problem:
Category 'robots.txt' does not exist.


how do I fix this
Quote Reply
Re: [Abusaki] Robots.txt with mod rewrite In reply to
http://www.gossamer-threads.com/...?post=268692;#268729

Last edited by:

Volker: Sep 11, 2005, 9:23 AM
Quote Reply
Re: [Volker] Robots.txt with mod rewrite In reply to
Thanks Volker,
I already have the mod rewrite up and running,what I am saying is because of the mod rewrite, I cannot get files I upload into the root directory like robots.txt and others and wondering if any one had the same problem and how they fixed it.
Quote Reply
Re: [Abusaki] Robots.txt with mod rewrite In reply to
Have a look at the code in Andy's posting (see link). You will need to define a rule for your robots.txt to not being treated as a paramter to page.cgi. For example, this one should do the trick:

Code:
RewriteRule (.*)\.txt $1.txt [L]
Quote Reply
Re: [Volker] Robots.txt with mod rewrite In reply to
Thanks Volker, worked great

didn't see that part of the mod rewrite
Thanks again