2016-08-03 95 views
0

我已经更新了我的网站服务器上的主页是工作正常,但innerpages工作不细找不到页面错误PHP

home page url-http://54.174.90.227/ - working 
innerpage url-http://54.174.90.227/advertise/ - not working 

我检查我的.htaccess文件 RewriteEngine叙述是

 # enable apache modRewrite module # 
    RewriteEngine on 

    AddDefaultCharset utf-8 

    #Protect - DOS 
     LimitRequestBody 10000000 

     # set files headers 
    <IfModule mod_headers.c> 
     <FilesMatch "\.(css|js|png|gif|jpg|jpeg|htc)$"> 
     Header set Cache-Control "max-age=2678400, public, must-revalidate" 
    </FilesMatch> 
    </IfModule> 

    <IfModule mod_headers.c> 
    <filesMatch "(thumb_resize\.php|thumb_resize_fixed\.php|image_url\.php)$"> 
    Header set Cache-Control "max-age=2678400, must-revalidate" 
    </filesMatch> 
    </IfModule> 

     #+SymLinksIfOwnerMatch 
     Options All -Indexes 

    <Files .htaccess> 
    order allow,deny 
    deny from all 
    </Files> 

    # deflate static content 
    <IfModule mod_deflate.c> 
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/x-component 

    text/css application/x-javascript application/javascript 

RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 

    ErrorDocument 403 "/public/error/404.php/" 
    ErrorDocument 404 "/public/error/404.php/" 
ErrorDocument 406 "/public/error/404.php/" 


# Pages User 
RewriteRule ^([a-zA-Z0-9-\_\.]+)$ index.php?usr=$1 [QSA,L] 

# Pages Search 
RewriteRule ^search/(.+)$ index.php?q=$1 [QSA,L] 

# Pages Static 
RewriteRule ^([a-zA-Z0-9-_]+)/$ index.php?page=$1 [QSA,L] 

# Pages Status 
RewriteRule ^([a-zA-Z0-9-_]+)/(status)/([0-9]+)$ index.php? usr=$1&action=$2&id_status=$3 

[QSA,L] 

    # Pages User Action 
RewriteRule ^([a-zA-Z0-9-\_\.]+)/(followers|following|favorites|media|info)$ index.php?usr= 

$1&action=$2 [QSA,L] 

#Thumb Resize Images 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule ^thumb/([a-z0-9-_\.\/]+)$ thumb_resize.php?x=$1 [QSA,L] 

#Thumb Resize Images Fixed 
RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule ^thumb_fixed/([a-z0-9-_\.\/]+)$ thumb_resize_fixed.php?x=$1 [QSA,L] 

#sitemaps 
RewriteRule ^public/sitemaps/sitemaps\.xml$ public/sitemaps/sitemaps.php [L] 

请给我一些建议。

+0

我们可以看到你的.htaccess文件吗? – mitkosoft

+0

你可以请看看配置文件http://54.174.90.227/info.php –

回答

0

尝试通过递减或递增项目来测试它。

您将备份您的.htaccess并删除所有内容。然后尝试,如果基地网址正在工作,如果与广告的网址工作。我想,这两个网址将工作。 然后,您将逐个添加备份的规则.htaccess,并观察它何时会中断。然后你有规则,这打破了你的页面。

接下来让我们看看httpd.conf和其他类似的apache配置文件。检查您的DocumentRoot变量,并检查是否尚未设置别名来通告目录。

接下来检查advertise目录是否在/var/www/html目录下?所以广告文件必须位于/var/www/html/advertise目录中。

是在advertise目录index.php

+0

谢谢你让我试试... –

+0

没有得到任何解决方案仍然不工作 –

+0

我添加到我的答案步骤为检查,如果一切正确配置。让我们试试这些观点。 –