Code: Select all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>So if the url was http://www.mydomain.com/dir/subdir/ I could use $var_array[1] and $var_array[2] to read the different directories in the url... This code used to work for me but it isn't anymore...
Code: Select all
$var_array = explode("/",$PATH_INFO);Hopefully I'm making sense....