Answer the question
In order to leave comments, you need to log in
How to make a parameter in url?
Hello!
I have the following in .htaccess:
RewriteRule ^([a-zA-Z]+)/games/([A-Za-z0-9-?._]+)$ /games/index.php?lang=$1&name=$2 [L]
<?php
$hideblock = $_GET['hideblock'];
echo $hideblock;
?>
RewriteRule ^([a-zA-Z]+)/games/([A-Za-z0-9-?._]+)?hideblock=([a-zA-Z]+)$ /games/index.php?lang=$1&name=$2&hideblock=$3 [L]
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