SEF URLs breaks comment popup for anything but latest photo
I'm using my own template (with SEF help from the modifications in theworldin35mm) along with .htaccess (below) to generate nice URLs for my site. But I'm having a problem with comments for any photo that isn't the most recent.
When you visit the site, mysite.com/photoblog/ , you see the most recent photo and the popup comment url (http://mysite.com/photoblog/index.ph...nt&showimage=2) works fine. But when you browse to the previous photo, http://mysite.com/photoblog/p/1 , clicking the comment link doesn't work (404) because the url is rewritten.
In the popup, however, I have links to comments for the next/prev photos and those aren't rewritten (although they should be, and I'm not sure why it's not) and it navigates fine.
How can this be fixed? I've messed with the htaccess to no avail and I've messed with PP's index.php where the <comment_popup> is replaced, but I'm still stuck.
Can anybody help?
If it would help to see a live version, please PM me, as I'm still sorting this out on the site before I take it live.
Much appreciated! THanks for your time!
If manually typing in http://mysite.com/photoblog/p/1 gives you a 404 error, than you did not correctly setup mod_rewrite.
Some reason why URL rewrites give 404s
And please, provide a real URL, it would be nice to see the error happening in order to solve the issue more quickly and without requiring someone setup the same scenario on there own server.
Sorry about my original description, but viewing the photo doesn't give me a problem, so I know the rewrite works, it's just the popup link.
So I have a live demo of what I'm talking about, using your template. It's at:
You'll see that the (unstyled) comment popup works for the most recent photo, and the SEF URLs work for browsing. But the comment popup won't work for anything but the latest (ie., anything under the /p/# scheme).
I hope that will help to explain the problem.
I'd really love to get this fixed! Any insight you have would be epic. Thanks so much for checking it out!
Your problem is here
If you are going to use mod_rewrite URLs for pixelpost links, don't mix, some mod_rewrite URLs and some standard PP URLs. It just causes problems. And prefix all URLs with <SITE_URL>, since mod_rewrite URLs make using relative HTML links difficult.
Thanks SO MUCH. That was awesome of you.
I now have consistent URL structure across my template set, and I also had to add a "../" to index.php's replacement of the thumbnail_no_link tag to get the correct path to my thumb for display in the comment popup.
Thanks again for the huge help! Getting very close to launching my site!
|All times are GMT. The time now is 07:40 PM.|
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.