YellowLlama
Member
Posted 2 weeks ago #
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 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 :)
SkyNet000
Member
Posted 2 weeks ago #
Try this code mate .
<html>
<head>
<center><title>Blog moved to new site : http://www.YOURSITE.com | This blog is down , please go to the new site |</title>
<meta http-equiv=refresh content="5; url=http://www.YOURSITE.com" />
<meta name="robots" content="noindex,follow" />
</head>
<body>
<h1>This page has been moved to a new site ( http://www.YOURSITE.com )</h1>
<p>If your browser doesn't redirect you to the new location after 5 seconds , please <a href="http://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