Answer the question
In order to leave comments, you need to log in
Rewrite, saving part of the URL to a variable that is visible in SSI. How to do it in Apache?
I know how easy it is to do everything on Nginx, but the patient is Apache. In general, everything is different. Please help.
It is necessary that requests of the form:
http://site.com/path/name00
http://site.com/path/name01
..
http://site.com/path/name98
http://site.com/path/name99
"redirected" (not "redirected", that is, without three hundredth codes, imperceptibly for the user) into something like: site.com/path/names.shtml
location ~ /path/name(\d\d) {
set $nameNum $1;
rewrite * /path/names.shtml;
}
location /path/names.shtml {
ssi on;
}
So that inside names.shtml you can do: <!--#echo var="nameNum" -->
and get the number. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question