Magento + FishPig + Wordpress Issues

a1anm

Free Member
Jan 29, 2011
733
79
Hi,

I have got Wordpress up and running on my Magento site using Fishpig however I have these small issues:

1. When a visitor comes to mysite.com/blog they see the blog and all the posts etc. The problem is that they can still access mysite.com/wp and they will see the default Wordpress 404 page. How can I prevent this? ie. anyone trying to visit mysite.com/wp will get forwarded to mysite.com/blog? I tried a simple 301 redirect in .htaccess but that then prevented me from accessing the admin section of the site.

2. For some reason when I use the pager to view more pages of posts I end up with 2 slashes in the url i.e. mysite.com/blog//page/2/. I fixed this by adding the below to htaccess but was hoping to find the actual cause of this and fix it rather that resorting to this:
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{REQUEST_URI} ^(.*?)(/{2,})(.*)$
RewriteRule . %1/%3 [R=301,L]

I have checked and the urls specified in admin don't have a trailing slash.

Thanks!
 

Latest Articles