hi, i face this situation. if anybody type any name in my site i have to redirect them to my index page in a separate folder. for example, www.example.com/testuser ...then i have to redirect them to...... www.example.com/subfolder/index.php pls help
do you need to know how to do mod rewrite there is a good article on it which can be found here http://www.ilovejackdaniels.com/cheat-sheets/mod_rewrite-cheat-sheet/
Sorry, but I didn't get your problem. Do you want to redirect user to a index page in a fixed folder or will it depend on the name that is entered in URL?
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule [^/]+ subfolder/index.php [L] Code (markup): Or if "subfolder" is the name entered in the URL: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ([^/]+) $1/index.php [L] Code (markup):