The rewritemap tag has no wiki summary.
0
votes
0answers
63 views
Optional query string as key in RewriteMap
I have a rewrite map that has some keys with query strings and some without.
Is it possible to pass in the key based on the request depending on if it has a query string or not?
My current rewrite ...
0
votes
1answer
84 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
265 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
1k 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
372 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_-]+)? ...
0
votes
1answer
581 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
104 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
771 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 ...