Question about order/priority RewriteRule and Redirect Statements

This is a discussion on Question about order/priority RewriteRule and Redirect Statements within the Apache Web Server forums, part of the Web Server and Related Forums category; I have the following .htaccess file in apache ..htaccess RewriteEngine on RewriteRule ^(.*).nsf(.*) http://localhost:81$1.nsf$2 [P] ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-27-2007
dylan.yuen@googlemail.com
 
Posts: n/a
Default Question about order/priority RewriteRule and Redirect Statements

I have the following .htaccess file in apache

..htaccess
RewriteEngine on
RewriteRule ^(.*).nsf(.*) http://localhost:81$1.nsf$2 [P]
Redirect 301 /index2.htm http://www.domain.com
Redirect 301 /open.nsf http://www.domain.com


if I go to http://www.domain1.com/ I see the apache default page.
if I go to http://www.domain1.com/index2.htm I get redirected to
http://www.domain.com as expected

using the http header request reader at http://www.rexswain.com/httpview.html
I can see that the redirections are marked as 301 redirections.

The redirection from /open.nsf to http://www.domain.com doesn't work,
it looks like the Rewriterule has higher priority and the page
http://www.domain1.com/open.nsf opens as if there is no redirection
setup

I tried using this statement
RedirectMatch 301 open.nsf http://www.domain.com

But the page still opens as normal, http://www.domain1.com/open.nsf
instead of
http://www.domain.com

How can I setup redirections for the pages that are "affected" by the
RewriteRule ?

I want http://www.domain1.com/open.nsf to go to http://www.domain.com
as a 301 Redirection.
Our Lotus Domino webserver only knows 200 redirections, not 301
redirections. I am using apache in front of Lotus domino

Apache HTTP on port 80
Domino HTTP on port 81

Please advise, any help is appreciated.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:01 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0