I made .htaccess
to read $_GET['ht'] AND $_GET['hht'] as /ht/hht
but now it dont read custom values when I add to url. For example mydomain.com/ht/?smth=else
- it doest read $_GET['smth']
. How can I change that?
My .htaccess
:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule .* - [L]
RewriteRule ^([a-zA-Z0-9-z\-]+)/([a-zA-Z0-9-z\-]+)$ index.php?ht=$1&hht=$2
RewriteRule ^([a-zA-Z0-9-z\-]+)/([a-zA-Z0-9-z\-]+)/$ index.php?ht=$1&hht=$2
RewriteRule ^([a-zA-Z0-9-z\-]+)$ index.php?ht=$1&hht=$2
RewriteRule ^([a-zA-Z0-9-z\-]+)/$ index.php?ht=$1&hht=$2
</IfModule>
<Files ~ "\.inc$">
Order allow,deny
Deny from all
</Files>
<Files .htaccess>
order allow,deny
deny from all
</Files>