Error 404 when configuring custom URL

Asked

Viewed 42 times

-1

2 answers

1


I had to create a web.config file with the following content:

<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/{R:0}" />
    </rule>
</rules>

1

Italo, you have to configure the permanent wordpress links again and then it will generate you a file .htaccess correct on the server with redirect to friendly Urls.

Or you can delete the .htaccess old and go in the settings and in permanent links and save again so that the new file is generated

If you say that it was not possible to create the wordpress file the code will display, you create a file . htaccess at the root of your server (usually /var/www/html or /public-html) and glue the code there :)

  • hi buddy, solved. posted the answer yesterday. hug

  • Quiet I will mark the answer as +1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.