• Resolved kiersten

    (@kiersten)


    Hi, Yesterday, I dropped the /index.php from my web address, https://kmareka.com, and I want to do an htaccess redirect so that search engines etc can start registering the correct addresses for my site. Can anyone tell me how to do that? Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter kiersten

    (@kiersten)

    I figured out how to make the .htaccess file and now I am looking for help with configuring the redirect command. I want to redirect pages that have /index.php to just the URL plus whatever additional code is there after the where it used to say /index.php. Can anyone be of help?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Try adding just
    DirectoryIndex index.php
    to the .htaccess file. See if that works.

    As for the rest, adjust your permalinks and remove the index.php. If it gives you some code to add to the .htaccess file (scroll down to see it all), then do that.

    Thread Starter kiersten

    (@kiersten)

    I tried adding that text but it didn’t work. I’m looking to be able to go into google and have an entry that has my old address such as https://kmareka.com/index.php/?p=1088 and have it find the page as addressed now which is:

    https://kmareka.com/?p=1088

    Is this possible?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Is your site running on Linux or Windows? Apache or IIS?

    According to the validator is Linux/Apache.

    What he wants (I know because I helped him yesterday in another thread): the permalink has been changed, used to be with index.php included.
    Now he would like a redirect for the old links out there to be redirected to the same address without having index.php in it.
    So, if somebody linked to a post earlier like
    https://kmareka.com/index.php/?p=1088
    to be (permanently) redirected to
    https://kmareka.com/?p=1088

    Thread Starter kiersten

    (@kiersten)

    I got it to work, unbelievably. Here is what I put in the .htaccess file:

    Redirect /index.php/ https://kmareka.com/

    Thanks for your help again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘htaccess redirect’ is closed to new replies.