Home php rewritecond and% {http_host}

rewritecond and% {http_host}

Author

Date

Category

Hello. Why RewriteCond Does not see the variable % {http_host} ? Or so it should be?

rule does not work:

rewritecond% {http_referer}% {http_host}
Rewriterule. * - [F, L]

Rule works:

rewritecond% {http_referer} example.com
Rewriterule. * - [F, L]

Answer 1, Authority 100%

For your case, use expressions. Replace your first first line on:

rewritecond exp "% {http_referer} -strmatch '*: //% {http_host} / *'"

All features can be found here

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions