Redirect ruletrouble is problem mod rewrite or apache

New to mod_rewrite? This is a good place to start.

Redirect ruletrouble is problem mod rewrite or apache

Postby tcwaters » Tue Apr 27, 2004 9:53 am

I'm running apache 1.3 on a Apple OS X Server 10.3.3.

Entered a RedirectMatch Rule via the Server Admin. Rule looks like this:
Type: RedirectMatch
Pattern: ^/homepage/(.*)
Path: /directory/dir.lasso?Last=$1

So, if I use the URL: www.mysite.edu/homepage/waters,
what I want to get is www.mysite.edu/directory/dir.lasso?Last=waters
What I get is: www.mysite.edu/directory/dir.lasso%3fLast=waters

I don't know how to fix this. I don't know how to determine where the problem is: Is the problem in what is sent from Mod rewrite to the server? I'm 99% sure this worked in an earlier version of 10.3 Server! I know I checked it- as I evaluated how easy it would be to make the move from Webstar to Panther Server, a few redirect rules were the only thing that was different between the two set ups. So, I made sure to test each redirect before being sure I could make the move.

I have tried to escape the "?" hoping that would fix the problem, but it didn't. If I try and escape the "?" then both the escape character AND the ? are converted:
www.mysite.edu/directory/dir.lasso%5c%3fLast=waters.

I believe this is because the mod rewrite part of things is just fine (and the escape would influence the rewrite).

Really pulling my hair out. All help appreciated.
tcwaters
 
Posts: 1
Joined: Tue Apr 27, 2004 9:48 am
Location: Pittsburgh PA, USA

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 27 guests

cron