index.php in URL – Without 404
-
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 getupdated. 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
- The topic ‘index.php in URL – Without 404’ is closed to new replies.