2011-10-03 53 views
0

你好鏌鋣開發商,鏌鋣htaccess的鏈接不工作

I am using MODx revolution. I have just transferred site from one domain to another. as it was a IP based server i have created virtual host with the same name it had previously. 
On previous server the files were located at the root but in new server files are located at tab3, so i have created virtual host that points inside that directory. ie. I have all files in modx/ dir so my virtual host config set to /var/www/modx/ 
Now the problem is whenever i open home page as well as subdomains (contexts) it works and shows the page but when i open any internal links it says 404 page 

例如:如果我打開www.abc.com =>它的工作原理 但是當我打開www.abc.com/contacts =>它不作品

我看到的.htaccess的問題,因爲 1)如果我刪除htaccess的 所有子域和域就像「abc.com/contact」完美的,但內在聯繫犯規敞開心扉,說404 2)如果我再次添加它只有主域和其內部鏈接打開...沒有子域或子域的內部鏈接工作

一件事....和線索就是 當我嘗試用ID來訪問相同的404頁,這樣 www.abc.com/index.php?id=8056

它的工作原理

我需要添加/刪除某些東西從htaccess?

+0

得到了解決方案:)有一點小姐配置...感謝您尋找。 –

回答

0

新服務器是否運行Apache?我有一個類似的問題,運行Zeus &服務器因此.htaccess沒有工作。有一個解決方案,但對我來說太高級了。相反,更容易安裝在Apache服務器上。