将每个url重定向到一个页面,作为querystring with.htaccess

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了将每个url重定向到一个页面,作为querystring with.htaccess相关的知识,希望对你有一定的参考价值。

  1. # every call to a page that is not an existing file
  2. # is redirected to another file as querystring
  3. Options +FollowSymlinks
  4. RewriteEngine on
  5. RewriteCond %{REQUEST_FILENAME} !-d
  6. RewriteCond %{REQUEST_FILENAME} !-f
  7. RewriteRule ^(.*)$ /proxy.php?from=$1 [QSA]

以上是关于将每个url重定向到一个页面,作为querystring with.htaccess的主要内容,如果未能解决你的问题,请参考以下文章