Lỗi gõ domain không tìm thấy trang

ngale

Private
Hiện tại mình bị lỗi khi chỉ gõ domain thì bị lỗi không tìm thấy trang, nhưng mọi trang khác thì đều chạy bình thường? Có cần chỉnh sửa file nào ko. Anh chị nào chỉ e cách khi gõ domain thì tự động chuyển về trang diễn đàn với. Thanks.
 
  • Like
Reactions: THB
Báo lỗi "Trang bạn yêu cầu không tìm thấy".Nó lỗi khi gõ tên miền thôi. Em muốn mình gõ tên miền thì nó tự động hỉu là trang diễn đàn thì làm thế nào ạ ?
 
  • Like
Reactions: THB
Bạn kiểm tra lại file .htaccess trên host của mình nhé.
nếu chưa có đoạn này thì thêm vào nhé.
Mã:
<IfModule mod_rewrite.c>
    RewriteEngine On
    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
       #  Mod by HackerPro536 - HVNGroups.Net
    #RewriteBase /xenforo

    #    This line may be needed to enable WebDAV editing with PHP as a CGI.
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>
 
Hoặc vào
Home->Options->Basic Board Information Chỉnh lại theo web bạn
 
  • Like
Reactions: THB
à mình nghĩ nó bị do cái index.
mình đoán bác ấy dùng derectadmin. hiện tại bác ấy tick vào mục URL friend,
Bác vào host. tìm file index.html xóa đi ( .html chứ ko phải .php nha. Chú ý nha.)
 
à mình nghĩ nó bị do cái index.
mình đoán bác ấy dùng derectadmin. hiện tại bác ấy tick vào mục URL friend,
Bác vào host. tìm file index.html xóa đi ( .html chứ ko phải .php nha. Chú ý nha.)
không phải host DA đâu bạn.
bạn này dùng vps của ods.vn
 
  • Like
Reactions: THB
Vẫn không được. Còn cách nào nữa không vậy, hiện tại e đang dùng host windown, htaccess e đã thay bằng web.config rồi.
 
  • Like
Reactions: THB
Vậy bạn config thế này cho web.config nhé.
Mã:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Imported Rule 1" stopProcessing="true">
                    <match url="^.*$" />
                    <conditions logicalGrouping="MatchAny">
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" />
                    </conditions>
                    <action type="None" />
                </rule>
                <rule name="Imported Rule 2" stopProcessing="true">
                    <match url="^(data|js|styles|install)" />
                    <action type="None" />
                </rule>
                <rule name="Imported Rule 3" stopProcessing="true">
                    <match url="^.*$" />
                    <action type="Rewrite" url="index.php" />
                </rule>
            </rules>
        </rewrite>
        <httpErrors existingResponse="PassThrough" />
    </system.webServer>
</configuration>
 
  • Like
Reactions: THB
Back
Top