我设置了以下重写规则
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ core/index.php [L]
网站架构是
newsite
 ﹂ .htaccess
 ﹂ core
     ﹂ index.php
如果我在 Windows 上使用 url:http://localhost/web/newsite/test
 ,
它将重定向到/web/newsite/core/index.php
并且它可以工作!
但如果在 Ubuntu 上使用 URL http://localhost/~user1/web/newsite/test
它将重定向到/home/user1/public_html/web/newsite/core/index.php
而不是/~user1/web/newsite/ core/index.php
那么,我该如何解决这个问题呢?
谢谢!