• Hi. I am facing an issue. All my WordPress page URLs are containing /index.php/ in the middle and I can not remove it. I did try different ways. What do I do wrong? This is what I see: https://ibb.co/wypLM0v

    Can you please help?

    Thank you!

    Peter

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello @wooster82 ,

    Go to the permalink and remove the all thing and only add this %postname% this will resolve your issue

    • This reply was modified 1 year, 4 months ago by asadz.

    In screenshot, On last input field please remove the index.php and keep only /%postname%/.

    Thread Starter wooster82

    (@wooster82)

    Thank you for the answers! The issue is that if I remove the /index.php/ part then all the subpage urls will end at a 404 not exist page even if the url at the page editor section is the same as the one opened. I feel it supposed to be a htaccess issue. What do you think?

    Moderator threadi

    (@threadi)

    If you adjust the URLs in the permalinks, the .htaccess file will be rewritten by WordPress. This can hardly be the cause.

    And, of course, existing URLs will change. If a page was previously accessible with /index.php/, it will no longer be accessible after the change. It’s as if you were changing your domain.

    To prevent this, there should actually be a 301 redirect from the old to the new URL. Since this does not exist, first check which URL your pages have according to the information in the backend (i.e. look under Pages to see what is specified there as the URL). If the ones listed there are not accessible then there seems to be another problem. Are you using a caching plugin? You would of course have to empty its cache completely. Other plugins also interfere with the structure of the URLs.

    Thread Starter wooster82

    (@wooster82)

    Hi Threadi! Thank you for your answer. The thing is that if I do the change you recommend then the post links change from domain.com/index.php/post-title to domain.com/post-title, but the posts give 404 error when I open at link domain.com/post-title. It seems to be very strange. I really did 100s of websites already, but it’s a new hosting and I am affraid that it causes the issue. What do you think? Thank you!

    Moderator threadi

    (@threadi)

    If the website uses a caching plugin, this can also influence the behavior. Empty the cache of the plugin after you have adjusted the permalinks.

    Also take a look at the .htaccess file to see if there are any individual rules in addition to the WordPress specifications. If so, simply delete the file and go to Settings > Permalinks in the backend and save it again. WordPress will then create a clean .htaccess file.

    However, if you have an nginx web server, the configuration may need to be adjusted in this. You should contact the hoster’s support team for this.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘index.php in the url’ is closed to new replies.