• Hello, I pulled my blog to another provider. In this context, I would also fix a rookie mistake with .htaccess.

    Had this Permalinkstruktur:

    https://www.example.com/index.php/%postname%

    Now I also want have the ‘/index.php/’ out. The rest of the link structure remains the same just only without the “index.php”.

    Just inside of .htaccess is this to make the website available, only with ‘www’:

    RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
    RewriteCond %{HTTP_HOST} !^example\.com$ [NC]

    Do not want a plugin. Can someone help me for a code within the .htaccess?!

    Thanks for the help!

Viewing 1 replies (of 1 total)
  • Moderator James Huff

    (@macmanx)

    Did you just remove the /index.php/ from your permalink structure?

    If so, WordPress will handle issuing the permanent redirects itself, no plugin or .htaccess work required.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom redirect without plugin’ is closed to new replies.