Redirecting with mod_rewrite and a map

    Date: 05/20/07 (Web Development)    Keywords: html, apache

    I'm trying to do some redirections using apache mod_rewrite with a map file, and I have it working in part, when in the case where the URL is in the map it should redirect and it currently does that, however I am trying to figure out how to make it do nothing when the URL is NOT in the map and this has not (yet) worked for me.

    Here is the basic form of the rewrite configuarions,

    RewriteMap    vhost        txt:/var/www/html/vhost.map

    RewriteCond   %{HTTP_COOKIE} !^(MY_REDIRECT)
    RewriteCond   %{HTTP_HOST}   (.*.host.org)
    RewriteRule   . ${vhost:%1} [R,CO=MY_REDIRECT:ZLIO_REDIRECT:host.org:1]
    Thank you in advance

    Source: http://community.livejournal.com/webdev/409790.html

« Content management systems? || php question »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home