• Mark Bloomfield

    (@yellowllama)


    Hiya

    I’ve just taken over hosting of a WP blog that was on a Windoze box to a Linux server. So the URL’s are https://www.site.com/index.php/category/news

    I’m wanting to drop the ‘index.php’ part but I dont want to lose any traffic already going to those URL’s.

    Is there a 301 regex redirect rule that can redirect the user to the same URL he’s browsed to, but without the index.php?

    Appreciate the help ??

Viewing 1 replies (of 1 total)
  • skynet000

    (@skynet000)

    Try this code mate .

    <html>
    <head>
    <center><title>Blog moved to new site : https://www.YOURSITE.com  | This blog is down , please go to the new site |</title>
    <meta http-equiv=refresh content="5; url=https://www.YOURSITE.com" />
    <meta name="robots" content="noindex,follow" />
    </head>
    <body>
    <h1>This page has been moved to a new site ( https://www.YOURSITE.com )</h1>
    <p>If your browser doesn't redirect you to the new location after 5 seconds , please <a href="https://www.YOURSITE.com"><b>click here</b></a>, sorry for the hassles!</p>
    
    </body>
    </html>
    </center>

    This is similiar to 301 redirect . This is Javascript . Hope this helpes . Works for me :p

Viewing 1 replies (of 1 total)
  • The topic ‘remove index.php from URL with 301’ is closed to new replies.