Apache URL Rewriting
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Web Servers General Talk > Apache URL Rewriting




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Apache URL Rewriting  
B. Heller


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-26-04 11:05 PM

Hello,

I've the following problem:

I want my Apache to rewrite

http://*/engine/arg1/val1/arg2/val2/.../test.php (or html, htm, ...)
to
http://*/engine.php?arg1=val1&arg2=....&file=test.php (...)

The * stands for any host and the URL should be able to contain a
variable count of arguments.

For my local IIS test server I already got a solution:

RewriteRule (.*/engine)(\?[^/]*)?/([^/]*)/([^/]*)(.*?)
$1(?2$2&:\?)$3=$4$5 [N,I]
RewriteRule (.*/engine)(\?[^/]*)?/(.*) $1.php(?2$2&:\?)file=$3 [I,L]

Okay, with the Apache I've to replace the I with NC (case insensitive)
but that's not the fault. The Apache doesn't understand these rules
and dies on reload.

mod_rewrite is correctly installed and is working, I'm already using
it for some other things.

I just can't get a solution for the case explained above, can anybody
help me?

Greets and thanks,

B. Heller





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:22 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register