thanks for ur reply krt i want to send dynamic values from htaccess file to php for example any user my site should be redirected to his personal homepage. i want to fetch database from his username example.com/test user ...redirect to example.com/user.php?id='testuser' i'm eager to know this pls help me regards,
In your .htaccess file: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-z0-9_-]+)$ user.php?id=$1 [NC, L] Note: this assumes usernames have only alphanumeric chars, hyphens or underscores Also, when you want to reply, use "Post Reply", do not start a new topic for each post as it gets confusing.
hi it shows an error like this The server encountered an internal error or misconfiguration and was unable to complete your request error code 500:
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-z0-9_-]+)$ user.php?id=$1 [NC,L]