2017-04-14 72 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 
相关问题