When I set up my site with wordpress 2.5, everything looked great initially. I chose to set up my permalinks to a format having domain followed by %postname%. That used to be my previous format in the old blog as well. Default format of permalinks is domain followed by post ids. Later on I realized that none of the links to the posts were working on my site. All those links were pointing to File Not Found error! Did a bit of search on net and figured out that a tweak is a must to get this going. This is what I did to make the links work
1. WordPress 2.5 expects /index.php/ in the url to display the posts appropriately if the permalink structure is other than default format.
2. So, when you configure your permalink format, ensure you include /index.php/ after the directory where your wordpress is installed. To give an example, if you want to set up permalink with your post name, then make sure your format is similar to /index.php/%postname/
3. This applies to any other format apart from numerical values.
However, I am yet to figure out how to make the pages link to work with the new 2.5 wordpress. Appreciate if any of you could share a solution for this.
Dave says
Any success on this issue? Please let me know once you get a solution for this. I am too having the same problem.
Mohan says
Hi Sony,
Thanks for your solution. This works if i have the dirty permalink with just the post id’s after base URL. However, I use Pretty permalinks of the format/blog/%category%/%postname%. Because of this, your solution is not going to solve my issue.. anyways, Yahoo and Google search engines are already indexing my new site 🙂
Cheers!
Sony Jose says
Hi Mohan,
I just figured out a simple workaround for this issue. Wonder why i couldn’t get this when we discussed about this in office.
I too had a similar situation, i had to make my sonic-world.com/blog/?p=51 point to my new blog at sonyjose.in
You can use this php code to replace your index.php at https://mohanbn.com/
$p=$_GET["p"];
header("Location: http://www.codecritic.in/blog/index.php?p=$p“);
echo(”Redirecting to the new domain”);
What this code basically does is, it would take the GET variable “p” posted to say mohanbn.com/?p=51 and redirects it to corresponding url for codecritic.in codecritic.in/blog/index.php?p=51
Hope this helps..
Enjoy!
PS: Reposted again because the code in the previous comment I pasted incorrectly. Sorry about that.