社交引擎网站的启动页面

时间:2011-04-08 17:54:58

标签: socialengine

如果有人访问该网站,我将如何创建一个将成为第一页的启动页面。该网站建立在socialengine上。

我想它不一定是html,可能是php。

我尝试使用DirectoryIndex index.html

更新htaccess文件

添加重定向代码,(破坏网站)

有什么想法吗?

1 个答案:

答案 0 :(得分:3)

通过另一篇文章想出来,它不适用于html页面,但我修改了它并且有效。

您的主.htaccess文件

  选项+ FollowSymLinks   RewriteEngine On

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]

FileETag大小