I am trying to write a set of htaccess rules that will do the following:
In both cases, I can use $ _GET ['url'] to get the parameters from the url to set any actions in my php script.
I currently have:
Options +FollowSymLinks +ExecCGI
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)/(.*)$ $1.php?url=$2 [L]
RewriteRule ^(.*)$ index.php?url=$1 [L]
</IfModule>
, , , , , php, htaccess . , [L] , , . , url, $_GET ['url'] "index.php".
, .
, -