怎么才能实现访问www.**.com/123定向到www.**.com/a.php?id=123能
我用cpanel,Linux主机
谢谢大家~

解决方案 »

  1.   

    url重写,需要配置apache,这方面的贴子有很多了
      

  2.   

    是租的空间,没有配置apache的权限,通过.htaccess可以实现吗
      

  3.   

    http://blog.csdn.net/czh_liyu/archive/2007/12/19/1953118.aspx
      

  4.   

    可以,但需要apache支持url Rewrite和解析.htaccess
      

  5.   

    这个貌似不行吧?URI还可以再.htaccess里改吗?请教
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www.xxxxxx.cn$
    RewriteCond %{REQUEST_URI} ^/blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>
    可以试试上面的,把所有www.xxxxxx.cn/blog/???重写为www.xxxxxx.cn/blog/index.php/???, wordpress里的配置
      

  6.   

    谢谢,可是看不懂啊。。www.**.com/123定向到www.**.com/a.php?id=123怎么写呢?