Php url重写时出错。htaccess

Php url重写时出错。htaccess,php,.htaccess,rewrite,Php,.htaccess,Rewrite,事实上,我不太会用。Htaccess文件,下面几行代码是从互联网上获取的。但现在它出现了一些意想不到的错误。 第一个错误:当我输入http://localhost/giccos/wall/username(非常好的显示和错误,但是当我把它添加到后面的php文件中时,http://localhost/giccos/wall/username?username=username如果我可以修复它,使其保持http://localhost/giccos/wall/username?username=us

事实上,我不太会用。Htaccess文件,下面几行代码是从互联网上获取的。但现在它出现了一些意想不到的错误。 第一个错误:当我输入
http://localhost/giccos/wall/username
(非常好的显示和错误,但是当我把它添加到后面的php文件中时,
http://localhost/giccos/wall/username?username=username
如果我可以修复它,使其保持
http://localhost/giccos/wall/username?username=usernames2312312s
本次翻页) 我想让它有点像facebook,如果我们添加.php正常操作的话

这是我的烂摊子:

Options +FollowSymLinks -MultiViews
RewriteEngine on 
RewriteBase /giccos/
RewriteCond %{REQUEST_FILENAME} -d [OR] 
RewriteCond %{REQUEST_FILENAME} -s 
RewriteRule ^.*$ - [L]
RewriteRule ^status/(.*).php status.php?status_id=$1
RewriteRule ^hashtag/(.*).php hashtag.php?hashtag=$1
RewriteRule ^wall/(.*).php wall.php?username=$1
RewriteRule ^blog/(.*).php blog.php?url=$1
RewriteRule ^verify/user/(.*).php verify.php?user=$1
RewriteRule ^groups/(.*).php groups.php?groups_id=$1
#RewriteRule ^life/(.*) $1.php
RewriteRule ^life/ newsfeed.php
DirectoryIndex home.php
Options All -Indexes
## Auto remove .PHP
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule ^ %1 [R,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*?)/?$ $1.php [L]

你知道这些规则在做什么吗?你怎么能下载并开始使用一些东西而不解释你的要求呢?我真的不明白它们:(我刚刚下载并试用了它,(在本地主机上)你能给我们更多关于你想要什么(而不仅仅是你试过什么)的细节吗?我想删除段落中的一些链接:
RewriteRule^status/(.*).php status.php?status_id=$1 RewriteRule^hashtag/(.*).php hashtag.php?hashtag=$1 RewriteRule^wall/(.*).php wall.php?username=$1 RewriteRule^blog/(.*).php blog.php?url=$1 RewriteRule^verify/user/(.*).php verify.php?user=$1 RewriteRule^groups/(.*)).php groups.php?groups_id=$1
并添加一些代码,以便它可以自动删除.php,当我的网站(mysite.com)上有用户时,它将自动切换到(mysite.com/newsfeed)