0
我有3個文件:.htaccess
:Rewerite URLS的.htaccess主機
RewriteEngine On
RewriteCond %{QUERY_STRING} ^$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ cats.php?name=$1
index.php
:
<?php
echo 'index';
而且cats.php
:
<?php echo $_GET['name'] . ' < '.$_GET["name"];
我現在面臨的問題當我在site.com上時,它將我重定向到cats.php
總是。但在我的本地主機重定向我只如果一個參數傳遞例如: site.com/some-argument