【发布时间】:2011-08-01 17:15:15
【问题描述】:
当有人访问该站点时,我将如何创建一个作为第一页的启动页面。该网站建立在社交引擎之上。
我猜不一定是html,也可以是php。
我已尝试使用 DirectoryIndex index.html 更新 htaccess 文件
添加重定向代码,(被破坏的网站)
有什么想法吗?
【问题讨论】:
标签: socialengine
当有人访问该站点时,我将如何创建一个作为第一页的启动页面。该网站建立在社交引擎之上。
我猜不一定是html,也可以是php。
我已尝试使用 DirectoryIndex index.html 更新 htaccess 文件
添加重定向代码,(被破坏的网站)
有什么想法吗?
【问题讨论】:
标签: socialengine
通过另一篇文章弄清楚了,它不是用于 html 页面,但我对其进行了修改并且可以正常工作。
您的主 .htaccess 文件
选项 +FollowSymLinks 重写引擎开启
RewriteCond %{REQUEST_URI} ^/$ RewriteRule (.*) main.html [L,QSA]
RewriteCond %{REQUEST_URI} /index.php RewriteRule (.*) index.php?rewrite=2 [L,QSA]
RewriteCond %{REQUEST_URI} /$ RewriteRule (.*) index.php?rewrite=1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} public\/ [OR] RewriteCond %{REQUEST_FILENAME} .(jpg|gif|png|ico|flv|htm|html|php|css|js)$ 重写规则。 - [L]
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?rewrite=1 [L,QSA]
文件ETag大小
【讨论】: