服务器重写规则

时间:2011-07-23 08:32:05

标签: php url

  

可能重复:
  How to make parameters look more attractive

如何在http://abc.xyz.com/index.php?code=pqr中打印网址http://abc.xyz.com/pqr 使用服务器RewriteRule?

1 个答案:

答案 0 :(得分:1)

Rewriterule ^/(.*)$ index.php?code=$1

将其放在名为.htaccess

的文件名中的子域目录中