I have created a htaccess file to rewrite my URL. I have successfully rewrite my URL successfully but the object not found 404 error message displayed. my htaccess file contains
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /file location/
RewriteCond %{QUERY_STRING} name=(.+)
RewriteRule ^index\.php %1? [R=301]
</IfModule>
And my php redirection code is
<?php echo"<script>location.href='index.php?name=username'</script>"; ?>
I want to be my URL like http://www.domainname.com/username can any one help me to solve this issue.