Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

get apache to rewrite url call

Posted on 2004-03-31
3
Medium Priority
?
200 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
dorward earned 200 total points
ID: 10729913
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
ID: 10729987
wow that was easy. I thought this would require some mod_rewrite magic.

thx
0
 

Author Comment

by:gunnar2003
ID: 10744703
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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

661 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