Using index.php with includes & folders instead of named php files Using index.php with includes & folders instead of named php files apache apache

Using index.php with includes & folders instead of named php files


In the .htaccess file in the user directory, place the following:

RewriteEngine OnRewriteRule ^(\d+)/?$ ../users.php?i=$1 [QSA,L]

For your question directory .htaccess file, try this:

RewriteEngine OnRewriteRule ^(\w+)?/?(\d+)?/?$ ../question.php?l=$1&i=$2 [QSA,L]