0

我正在尝试在 facebook 上创建一个应用程序。应用程序是指将包含外部页面(如 iframe)的选项卡。

当我访问应用程序的链接时,就像应用程序本身的页面一样,它工作正常。但是,当我将应用程序安装到常规的 facebook 页面时,它没有包含和显示外部页面,而是给了我一个 404 页面。

该 index.php 托管在我服务器上的目录中。上面提到的 404 页面是 wordpress 404 页面,因为我在根目录中安装了 wordpress。我认为所有这些混乱都必须与 .htaccess 和来自 wordpress 的重写内容有关。

这是我现在根目录中的 .htaccess:

ErrorDocument 401 default
########
php_value upload_max_filesize 50M
php_value post_max_size 50M
php_value max_execution_time 500
php_value max_input_time 500
#########
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
###Start Kloxo PHP config Area
###Please Don't edit these comments or the content in between. kloxo uses this to recognize the lines it writes to the the file. If the above line is corrupted, it may fail to recognize them, leading to multiple lines.

<Ifmodule mod_php4.c>
    php_value error_log "/home/boostermedia.ro/__processed_stats/dani2.boostermedia.ro.phplog"
    php_value upload_max_filesize 2M
    php_value max_execution_time  30
    php_value max_input_time  60
    php_value memory_limit  32M
    php_value post_max_size  8M
    php_flag register_globals  off
    php_flag display_errors  off
    php_flag file_uploads  on
    php_flag log_errors  off
    php_flag output_buffering  off
    php_flag register_argc_argv  on
    php_flag magic_quotes_gpc   off
    php_flag magic_quotes_runtime  off
    php_flag magic_quotes_sybase  off
    php_flag mysql.allow_persistent  off
    php_flag register_long_arrays  on
    php_flag allow_url_fopen  on
    php_flag cgi.force_redirect  on
    php_flag enable_dl  on
</Ifmodule>

<Ifmodule mod_php5.c>
    php_value error_log "/home/boostermedia.ro/__processed_stats/dani2.boostermedia.ro.phplog"
    php_value upload_max_filesize 2M
    php_value max_execution_time  30
    php_value max_input_time  60
    php_value memory_limit  32M
    php_value post_max_size  8M
    php_flag register_globals  off
    php_flag display_errors  off
    php_flag file_uploads  on
    php_flag log_errors  off
    php_flag output_buffering  off
    php_flag register_argc_argv  on
    php_flag magic_quotes_gpc   off
    php_flag magic_quotes_runtime  off
    php_flag magic_quotes_sybase  off
    php_flag mysql.allow_persistent  off
    php_flag register_long_arrays  on
    php_flag allow_url_fopen  on
    php_flag cgi.force_redirect  on
    php_flag enable_dl  on
</Ifmodule>

###End Kloxo PHP config Area


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

第一行,ErrorDocument 401 默认是我最后一次尝试处理 404。以下是链接: -应用程序的页面- 它应该显示一个简单的表格 -这是 index.php 的托管位置 -这是应用程序所在的位置安装和404错误

4

1 回答 1

0

我认为您有 FB 设置问题。

  1. URL 应该是https://quart.ro/beautydistrict/index.php而不是https://quart.ro/beautydistrict/index.php/。看到最后的最后一个斜线了吗?您需要将其删除。

  2. 您需要在服务器上安装 SSL

希望这可以帮助

于 2013-09-07T02:03:09.090 回答