• Hello,

    I have a problem with my page (www.test.psychiatra-dzieciecy.pl which is in a process of creation.

    URL/Permalinks are not working when index.php is not included in path. For example https://test.psychiatra-dzieciecy.pl/index.php/oferta-psychiatra-dzieciecy/ will work but

    https://test.psychiatra-dzieciecy.pl/oferta-psychiatra-dzieciecy/ won’t.

    I have checked everything which I found:
    – mod_rewrite – I have asked my hosting provider and it is on
    – when I delete .htaccess file it will be automatically created after saving changes in permalinks in WordPress settings
    – .htaccess file seems OK (at the bottom it’s configuration)
    – Creating a php file with phpinfo() function and visiting a page. But it doesn’t show me anything which I would consider a problem.

    The only other think which I should test is database – it’s cache. I found it here: https://www.ads-software.com/support/topic/permalinks-not-working-without-indexphp-in-the-url
    But I do not understand how to do it’s instruction: “What I discovered is that when I change the permalink structure the old rewrite rules are still cached in the database and don’t get

    updated. There is a record in the wp_options table with an index field called “option_name”. I found the record with the option_name of “rewrite_rules” and set the option_value blank. That

    forced it to generate the new values and it started working immediately.”

    When I use simple URL (test.psychiatra-dzieciecy.pl/example-post/) instead of test.psychiatra-dzieciecy.pl/index.php/example-post it shows:

    Not Found

    The requested URL /oferta-psychiatra-dzieciecy/ was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Thank you very much in advance for any help :). It is not the most important in creating webpage, but I would really like to do it the appropriate way.

    # 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • But I do not understand how to do it’s instruction:

    They are talking about editing the entries in the database. If your host provides you with a tool like phpMyAdmin, you can make the changes they describe.

    Ask your host if you have access to phpMyAdmin. If so, you will use the same database hostname, username, and password as is contained in your wp-config.php file.

    Thread Starter R_WordPress_

    (@r_wordpress_)

    Hi,

    thanks for your answer! I have full access to phpMy Admin.
    The database was freshly created when I was manually installing WordPress – by visiting site with config file.

    My database has it’s enteries like: wp_commentmeta, wp_comments, also wp_options. And it has Indekses (option_name and PRIMARY) and Table (autoload, option_id, etc). Option_id in this table is “BIGINT” type, Length 20, Defaults empty, Atributes unsigned, A_I is checked, everything else is empty.

    When I delete “20” and save it, then “20” is automatically reentered.

    I have also tried to “fix table” (all enteries ticked), but it says “The storage engine for the table doesn’t support r…”.

    Maybe I am just clicking something wrong :(.

    Thanks in advance for any help :).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘index.php in URL – Without 404’ is closed to new replies.