The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
150 views

Apache Dynamic Virtual Host: RewriteMap: file for map vhost not found

Following the instructions on Apache's site I have added the following to the end of my httpd.conf file: RewriteEngine on RewriteMap lowercase int:tolower #define the map file RewriteMap vhost ...
0
votes
1answer
35 views

mod_rewrite map doesn't work

I am trying to build a simple mod_rewrite map to have category names translated into ids like so: ../category/electronics -> category.php?cat=1 The map is placed inside the www folder. The code ...
1
vote
2answers
292 views

How to whitelist a directory in Apache configuration

In Wordpress, one of the few effective ways at reducing server load is to whitelist individual clients to /wp-login.php and /wp-admin/: <Directory /wp-admin> order deny,allow deny from ...
1
vote
0answers
49 views

Apache RewriteMap wildcards [duplicate]

I'm using Apache with a RewriteMap text file to handle some static URLs from an older version of a website. Does RewriteMap support using regular expressions or wildcards? I would like to rewrite any ...
0
votes
1answer
244 views

RewriteMap syntax Regex

in my .htaccess i've tons of directives, with same syntax: RewriteRule ^(.*)/PRODUCT_1.aspx http://www.site.com/product.php?id_product=2891 RewriteRule ^(.*)/PRODUCT_2.aspx ...
1
vote
2answers
468 views

Protecting images from direct access by checking current PHP session with mod_rewrite

I'm working on a solution to a problem where users could potentially access images (in this case PDF files) stored in a folder off the server root. Normally, my application validates users through PHP ...
0
votes
1answer
2k views

Apache RewriteRule with a RewriteMap variable substitution for the VAL argument to environment variable

I have an Apache server that serves up binary files to an application (not a browser). The application making the request wants the HTTP Content-MD5 header in HEX format. The default and only option ...
0
votes
3answers
441 views

htaccess internal error code 500

Hi when I try to make 301 redirect I get an internal error code 500: Rewriterule ^categoy/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)? ...
1
vote
1answer
1k views

Where is RewriteMap allowed?

This seems like a very simple question. I tried putting a RewriteMap directive in an .htaccess file but the logs showed an alert: RewriteMap not allowed here Then I tried putting it in the ...
0
votes
1answer
113 views

RewriteMap problem in .htaccess [duplicate]

Possible Duplicate: Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask? I need to do one change in mywebsite. i have two websites. i want to redirect some of ...
1
vote
2answers
904 views

RewriteMap problem in .htaccess

I need to redirect URLs of the form subpage.php?sid=123 to named pages. subpagemap.txt exists in the root and contains just the following delimited by Unix line endings \n: 1 a 2 b 3 c The ...