Error 404 when configuring custom URLs [closed]

-1

I've migrated a wordpress / plesk site (local to web) and it works fine but one detail:

The site only works if the pages are in the following format: link if I configure it to look like this: I get a 404 error.

Any tips?

    
asked by anonymous 17.08.2018 / 20:16

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>

    
17.08.2018 / 20:58
1

Italo, you have to reconfigure the permanent links of wordpress and hence it will generate you a .htaccess file on the server with the redirect to the friendly URLs. / p>

Or you can delete old .htaccess and go to the settings and permanent links and save again for the new file to be generated

In case you can not create the file, wordpress will display the code, you create a .htaccess file in the root of your server (usually /var/www/html or /public-html ) and paste the code there:

    
17.08.2018 / 22:54