[Resolved] Remove the index.php in the middle of permalinks

Home Forums Support [Resolved] Remove the index.php in the middle of permalinks

Home Forums Support Remove the index.php in the middle of permalinks

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1604846
    Harvey

    Hi,

    I have started to use the GP theme recently.

    In the default permalinks, there is a /index.php/ in the middle. If I remove it in setting->permalinks->Custom Structure, all pages except the homepage will show the 404 error.

    I have tried to open the website again in incognito mode, the same error exists.

    Is there any more settings to be done besides the one in setting->permalinks->Custom Structure?

    Thanks and I look forward to your reply.

    Harvey

    #1605110
    David
    Staff
    Customer Support

    Hi there,

    can you share a link to your site

    #1605133
    Harvey
    #1605156
    David
    Staff
    Customer Support

    Have you tried simply changing the Permalink structure from Custom to Post Name ?

    #1605177
    Harvey

    Hi David,

    I have just tried changing the permalink structure to Post name, and the result remains 404.

    #1605186
    David
    Staff
    Customer Support

    When you click Save Changes in Settings > Permalinks its should rebuild the structure.
    If thats not working then its generally a httaccess issues on your server – speak with your host as they should be able to help with fixing that.

    #1605217
    Harvey

    Hi David,

    I rent the centos virtual machine from the cloud service provider. Do you have any guidance on how I should change the structure of the htaccess file?

    #1605225
    David
    Staff
    Customer Support

    This article provides HTTAccess codes:

    https://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-posts-returning-404-error/

    Its towards the very end of the post.

    #1605235
    Harvey

    Hi David,

    Problem is solved. Thank you very much!

    BR,
    Harvey

    #1605604
    David
    Staff
    Customer Support

    Glad to hear that!

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.