This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Implementing x-robots tag
Author
Message |
swampboy
Newbie


Joined: 01 May 2008
Location: United States
Posts: 26
Posted: 07 July 2010 at 7:58am

I cannot find an example of how to implement x-robots to disallow certain doc types. I found an example for .htaccess for apache.

# do not index specified file types
<IfModule mod_headers.c>
<FilesMatch "\.(doc|pdf|swf)$">
Header set X-Robots-Tag "noindex"
</FilesMatch>
</IfModule>

How would i implement this with isapi rewrite 3?
Thx,
Tj

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 08 July 2010 at 1:05am

There's no alternative for this in ISAPI_Rewrite 3,
but you can achieve this with Helicon Ape mod_headers module.

__________________
Regards,
Anton
Back to Top
 
swampboy
Newbie


Joined: 01 May 2008
Location: United States
Posts: 26
Posted: 08 July 2010 at 8:12am

This can be run along side rewrite 3 w/no issues?
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 08 July 2010 at 8:35am

No, Ape can replace ISAPI_Rewrite 3 with monir changes but add lots of extra functionality.
Note that you need IIS7 to get mod_headers working properly.

__________________
Regards,
Anton
Back to Top
 
swampboy
Newbie


Joined: 01 May 2008
Location: United States
Posts: 26
Posted: 08 July 2010 at 8:55am

Ok, i found where they will indeed run side by side. I'm on win 2003 r2 and so iis 6. I really only need to disallow google indexing pdf and doc files, whihc is the example i provided above.

The more i read about Ape, it appears that when i upgrade servers to 2008 and iis7 it may be a good move. But i have too many webs on isapi rewrite 3 and don't have the energy to attempt upgrade now.

It appears taht perhaps teh free version will suffice as it's only for one site.

According to http://www.helicontech.com/forum/14582-Upgrading_Isapi_Rewrite_3_to_Helicon_Ape.html post, I need to add

AccessFileName ape.htaccess

to httpd.conf file for Ape (not httpd.conf for C:\Program Files\Helicon\ISAPI_Rewrite3)

and then by adding the line:
LoadModule rewrite_module  modules/mod_rewrite.so

to the httpd.conf for Ape to start it. Then I change .htaccess to ape.htaccess in the web i want to run Ape.

At that time, i should be able to add the <ifmodule> item above.

Is that correct?
Thx,
Tj

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 09 July 2010 at 9:00am

The problem is that mod_headers module you wanted to use in your initial post won't work on IIS6.

__________________
Regards,
Anton
Back to Top
 
exline
Newbie


Joined: 23 March 2010
Posts: 2
Posted: 30 November 2011 at 9:48am

Hello,

I am experiencing the same issue described here and would
like to add X-Robots-Tag to IIS 6 server running ISAPI
Rewrite 3 -- can you confirm that it's still the case that
this functionality is still not available in ISAPI Rewrite
3, and that Ape will not run on IIS 6?

Thanks.
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 01 December 2011 at 3:54am

@ exline:
"can you confirm that it's still the case that this functionality is still not available in ISAPI Rewrite 3, and that Ape will not run on IIS
6?"
- yes, it's still the same. And it won't change, 'case ISAPI_Rewrite is supposed to imitate mod_rewrite only (not other modules) and Ape can't
do it on IIS6 because of IIS6 architecture which doesn't allow it in a way it is possible on IIS7.

__________________
Regards,
Anton
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version