Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_rewrite noob

Status
Not open for further replies.

apparition

Technical User
Aug 8, 2001
34
US
Background:

My ultimate goal is to have IIS serve ASPs and Apache serve everything else on a NT4 box. IIS listens on port 81 and Apache is on port 80 of the same IP.

I'm trying to use mod_rewrite in Apache to change to url to port 81 if it has ".asp" in it. I don't think I'm understanding how RewriteCond and RewriteRule are supposed to work. Also, I know almost nothing about regular expressions so as you can imagine I'm getting pretty frustrated.

RewriteEngine on
RewriteCond ^%{REQUEST_FILENAME}$ ^asp$
RewriteRule <I have no clue about this one>

Could someone explain this a little or give me a good example for my situation? The language on the Apache site is not very easy to understand and I'm getting nowhere.

Thanks in advance for any help...

~apn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top