Solved

get apache to rewrite url call

Posted on 2004-03-31
3
187 Views
Last Modified: 2010-03-04
I would like to know if its possible to get apache to rewrite a call to

www.domain.com/robots.txt (by crawlers) to www.domain.com/ressources.php?res=robots.txt

if so - how would I approach this problem?
0
Comment
Question by:gunnar2003
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
dorward earned 50 total points
Comment Utility
Stick the following in the config file (or .htaccess).

Redirect permanent /robots.txt http://www.domain.com/ressources.php?res=robots.txt
0
 

Author Comment

by:gunnar2003
Comment Utility
wow that was easy. I thought this would require some mod_rewrite magic.

thx
0
 

Author Comment

by:gunnar2003
Comment Utility
if I would use mod_rewrite .. what would be the consequences? which code is returned to a search engine when it calls robots.txt ? a 301 ? is that better then what happens when I use mod_rewrite?

I'd say mod_rewrite cannot be detected...
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now