2017-04-14 73 views
0

我正在嘗試獲取域上的所有頁面,例如在域example.com上通過index.php,而無需編輯url。我可以使用htaccess和php。例如,在域example.com上,我可以訪問example.com/thefile.php,它仍然會顯示主文件。使域上的所有頁面都通過特定頁面

回答

0

我想通過使用NamelessMC的.htaccess。 .htaccess文件是:

Options +FollowSymLinks 

Options -Indexes 

RewriteEngine On 

RewriteCond %{SCRIPT_FILENAME} !-d 

RewriteCond %{SCRIPT_FILENAME} !-f 

RewriteRule ^.*$ ./index.php 
相關問題