Forum Moderators: phranque

Message Too Old, No Replies

Alternatives to RewriteMap

         

CWebguy

12:08 am on Mar 8, 2009 (gmt 0)

10+ Year Member



I've done a lot of searching and can't really find an answer to this. What would be a good alternative to a rewritemap if one didn't have httpd.conf access? Any ideas?

Thanks.

jdMorgan

9:10 pm on Mar 8, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Depends on what you're trying to accomplish, but in general, you could pipe (rewrite) all requests to a PERL or PHP script, and then have that script "do whatever" with the request, and then resolve (translate the URL to a filepath) and include the originally-requested file(s) if appropriate.

Once you invoke this "wrapper" script, you transition from the URL-to-filename translation API phase to the content-handling phase, and there is no going back. So be sure that you accomplish everything you need to do in the URL-to-filename translation phase before making this transition.

Jim