Solved

RewriteMap causing error: not allowed here

Posted on 2004-08-24
1
831 Views
Last Modified: 2011-10-03
Hello.

I tried the following:

     RewriteEngine on
     RewriteMap sessionsTab /home/webadmin/domain.com/html/sessions.txt
     RewriteCond !${sessionsTab:%{REMOTE_ADDR}} =true
     RewriteRule /* /Not_Logged_In.html [R,L]

and get the following error:

    "RewriteMap not allowed here"

I am running Apache 1.3.27 on Linux Redhat 9 in a virtual enviroment (I host more than one domain there, using one IP address).  I have root access.

How can I get rid of the error?


Thanks!
0
Comment
Question by:hankknight
1 Comment
 
LVL 36

Accepted Solution

by:
Zyloch earned 500 total points
ID: 11882408
Ah, well, RewriteMap, you should put in your httpd.conf file in either the second server section or the third virtual section, at least that's what it says. Then, you can use the RewriteCond rules in .htaccess across your server (which is why my other example had two RewriteEngine)
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question