diff options
author | Rich Bowen <rbowen@apache.org> | 2012-05-08 22:14:53 +0200 |
---|---|---|
committer | Rich Bowen <rbowen@apache.org> | 2012-05-08 22:14:53 +0200 |
commit | 3d6416ac24b4a2cde09c88136b8906ead8e7df3b (patch) | |
tree | 426b654e09e440275be4a435cca0361b93760c7e | |
parent | xforms (diff) | |
download | apache2-3d6416ac24b4a2cde09c88136b8906ead8e7df3b.tar.xz apache2-3d6416ac24b4a2cde09c88136b8906ead8e7df3b.zip |
Remove extra HTML markup that was hosing the syntax highlighting.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1335740 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | docs/manual/rewrite/access.xml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/manual/rewrite/access.xml b/docs/manual/rewrite/access.xml index 2b6c677c5b..207bac2c66 100644 --- a/docs/manual/rewrite/access.xml +++ b/docs/manual/rewrite/access.xml @@ -84,27 +84,27 @@ configuration.</note> <!-- TODO: Add discussion here of why we have !^$ in there. --> <highlight language="config"> -RewriteCond %{HTTP_REFERER} <strong>!^$</strong> +RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !www.example.com [NC] -RewriteRule <strong>\.(gif|jpg|png)$</strong> - [F,NC] +RewriteRule \.(gif|jpg|png)$ - [F,NC] </highlight> <p>In this second example, instead of failing the request, we display an alternate image instead.</p> <highlight language="config"> -RewriteCond %{HTTP_REFERER} <strong>!^$</strong> +RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !www.example.com [NC] -RewriteRule <strong>\.(gif|jpg|png)$</strong> /images/go-away.png [R,NC] +RewriteRule \.(gif|jpg|png)$ /images/go-away.png [R,NC] </highlight> <p>In the third example, we redirect the request to an image on some other site.</p> <highlight language="config"> -RewriteCond %{HTTP_REFERER} <strong>!^$</strong> +RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !www.example.com [NC] -RewriteRule <strong>\.(gif|jpg|png)$</strong> http://other.example.com/image.gif [R,NC] +RewriteRule \.(gif|jpg|png)$ http://other.example.com/image.gif [R,NC] </highlight> <p>Of these techniques, the last two tend to be the most effective @@ -291,7 +291,7 @@ RewriteRule ^ ${deflector:%{HTTP_REFERER}} [R,L] we just wish to redirect back to where they came from, a "-" is placed in the map:</p> -<example> +<hightlight language="config"> ##<br /> ## deflector.map<br /> ##<br /> @@ -299,7 +299,7 @@ RewriteRule ^ ${deflector:%{HTTP_REFERER}} [R,L] http://badguys.example.com/bad/index.html -<br /> http://badguys.example.com/bad/index2.html -<br /> http://badguys.example.com/bad/index3.html http://somewhere.example.com/ -</example> +</highlight> </dd> </dl> |