programing

wordpress permlink show "web.config now." in godaddy

iphone6s 2023. 9. 24. 12:32
반응형

wordpress permlink show "web.config now." in godaddy

내부 페이지를 보여주지 않는 갓디 워드프레스 사이트에서는 홈페이지와 워드프레스 관리 페이지만 보여줍니다."Permalink Settings"(퍼말링크 설정)에서 변경 내용 저장을 클릭하면 "지금 web.config를 업데이트해야 합니다"(web.config now)라고 표시됩니다.내 사이트에 web.config를 추가하는 동안 500 오류가 표시됩니다(홈 페이지 및 관리 페이지도 표시됨) 이제 어떻게 해야 합니까? 500 오류 수정 또는 404 오류 수정 및 수정 방법은 무엇입니까? 도와주세요. 내 .htaccess 파일은 아래에 있습니다.

# 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

당신은 window server를 사용하고 있으므로 wordpress의 root 폴더에 web.config가 필요합니다.

루트 폴더에 web.config가 없으면 web.config 파일을 추가하고 아래 코드를 추가합니다.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Main Rule" stopProcessing="true">
                    <match url=".*" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="index.php" />
                </rule>
            </rules>
        </rewrite>
        <staticContent>
            <remove fileExtension=".svg" />
            <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
        </staticContent>
        <defaultDocument>
            <files>
                <remove value="index.aspx" />
                <add value="index.php" />
            </files>
        </defaultDocument>
    </system.webServer>
</configuration>

루트 폴더는 wp-content, wp-includes 등을 포함하는 폴더를 의미합니다.

만약 홈 페이지가 500 에러를 던지고 있다면, 전체를 제거해보세요.<defaultDocument>태그 섹션

<defaultDocument>
    <files>
       <remove value="index.aspx" />
       <add value="index.php" />
    </files>
</defaultDocument>

인테리어 페이지가 작동하는 데도 같은 문제가 있었는데 홈페이지에 500개의 오류가 발생했습니다.web.config 파일을 편집하고 태그와 그 안에 있는 모든 것을 제거하여 홈페이지를 작동시켰습니다.

언급URL : https://stackoverflow.com/questions/51094128/wordpress-permlink-show-you-should-update-your-web-config-now-in-godaddy

반응형