如何屏蔽URL


How to mask a URL

我没有试图隐藏我的url。我只需要对我的客户表现得好一点。我试图屏蔽的URL是:mysite.com/group/2。如果是mysite.com/client就好了。因此,每当我的客户端点击他的url mysite.com/client时,后面的代码将来自这个url mysite.com/group/2,其中group是一个模块(文件夹/源),2是一个主id。我试过使用重写mod/Apache(.htaccess),但我没有成功。我该怎么做呢?还有别的办法吗?由于

这里是。htaccess
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
# My Rewrite Rule
RewriteRule ^client$ group/2
# Get rid of index.php
RewriteCond %{REQUEST_URI} /index'.php
RewriteRule (.*) index.php?rewrite=2 [L,QSA]
# Rewrite all directory-looking urls
RewriteCond %{REQUEST_URI} /$
RewriteRule (.*) index.php?rewrite=1 [L,QSA]
# Try to route missing files
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} public'/ [OR]
RewriteCond %{REQUEST_FILENAME} '.(jpg|gif|png|ico|flv|htm|html|php|css|js)$
RewriteRule . - [L]
# If the file doesn't exist, rewrite to index
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?rewrite=1 [L,QSA]
</IfModule>
# sends requests /index.php/path/to/module/ to "index.php"
# AcceptPathInfo On
# @todo This may not be effective in some cases
FileETag Size
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css                    application/x-javascript application/javascript
</IfModule>

而不是将文件定位在mysite.com/group/2尝试将文件放在该目录mysite.com/client在该目录中编写代码在index.php文件中,该文件处理您的代码。这是我在我的网站