Kloon
Expert Member
- Joined
- Nov 6, 2006
- Messages
- 1,670
So I have this in my .htaccess
and I have a php file
so according to me if I visit http://127.0.0.1/rewrite/theusername the php file should return theusername, but instead it returns user.php
Code:
RewriteEngine On
RewriteBase /rewrite
RewriteRule ^(.*)$ user.php?id=$1 [L]
and I have a php file
PHP:
<?php
echo "username is ".$_GET['id'];
?>
so according to me if I visit http://127.0.0.1/rewrite/theusername the php file should return theusername, but instead it returns user.php