Lid |
|
Ja, dat werkt wel.
Dit zijn de twee bestanden, /var/www is root.
/var/www/tests/rewriterules/index.php
<pre>
<?php
var_dump($_GET);
?>
</pre>
/var/www/.htaccess
order allow,deny
deny from 195.191.54.218
deny from 68.169.86.220
deny from 123.195.230.240
deny from 180.4.177.206
deny from 24.147.175.78
allow from all
DirectoryIndex index.php
RewriteEngine On
RewriteRule tests/rewriterules/topic/([0-9]+)/$ tests/rewriterules/index.php?c=$1 [R]
RewriteRule tests/rewriterules/topic/([a-zA-Z]+)/([a-zA-Z]+)/$ tests/rewriterules/index.php?c=$1&name=$2 [R]
order allow,deny deny from 195.191.54.218 deny from 68.169.86.220 deny from 123.195.230.240 deny from 180.4.177.206 deny from 24.147.175.78 allow from all DirectoryIndex index.php RewriteEngine On RewriteRule tests/rewriterules/topic/([0-9]+)/$ tests/rewriterules/index.php?c=$1 [R] RewriteRule tests/rewriterules/topic/([a-zA-Z]+)/([a-zA-Z]+)/$ tests/rewriterules/index.php?c=$1&name=$2 [R]
De twee andere delen uit .htaccess (directoryindex en order allow,deny) werken wél.
In /var/www/tests en /var/www/tests/rewriterules staan geen .htaccess-bestanden. |