Questions tagged [rewritemap]

20 questions
0
votes
1 answer

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 http://www.site.com/product.php?id_product=2896 and everything works. Now,…
CalfCrusher
  • 105
  • 8
0
votes
1 answer

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 within Apache is Base64. If I add "ContentDigest…
Kilo
  • 1,554
  • 13
  • 21
0
votes
3 answers

htaccess internal error code 500

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_-]+)? product_detail.php?category=$1&subcategory=$2&product=$4 [QSA,NC] RewriteMap…
Welliam
0
votes
1 answer

RewriteMap problem in .htaccess

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 the page from website1.com to website2.com based on one…
yashjimmy
0
votes
1 answer

Apache 2.2 IP address blacklist

I wanted to blacklist on the fly some IP address. I'm updating the main httpd.conf but i wanted to add some IPs on the fly, without using .htaccess (neither the heavy fail2ban). So, i creating a list of ip using Rewrite map. It's working well,…
1
2