2016-08-03 46 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

我添加到我的答案步驟爲檢查,如果一切正確配置。讓我們試試這些觀點。 –