【发布时间】:2012-09-29 23:29:11
【问题描述】:
我设置了以下重写规则
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
那么,我该如何解决这个问题呢?
谢谢!
【问题讨论】:
标签: windows linux .htaccess mod-rewrite ubuntu