Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
hello ... I have just launched a new site, checked it all was working and then switched on pretty URLs. There is now a problem with folders in the gallery - clicking on the Gallery sub-nav links 2013 / 2012 / 2011 results in a blank page http://www.midsummermusic.org.uk/gallery.php

Pretty URLs are switched off at the moment and it works fine. Switch pretty URLs on and it stops working! Not quite sure what is causing this - have spent a while troubleshooting and haven't found the cause ... any ideas? I have used exactly this set up for previous sites and haven't had a problem with pretty URLs :?
Hi potato,

I'll need to study the problem with prettyURLs turned on.
Could you please PM me the FTP/couch creds for the site?

Thanks.
Thank you for entrusting me with the creds, potato.

I haven't had a chance yet to login (have to be out of the office for a few hours), but I think I can now see what is going wrong.
Actually, I am dismayed I failed to spot the problem the first time itself.

You see, I think you have named the folders '2013', '2012' etc.
With prettyURLs on, the link to the folders become
http://www.yoursite.com/template/2014/

Now that link leads Couch to believe that it is the archive view, and not the folder view, that is being invoked.

Am I right?

If so, we can discuss the resolution -
the cleanest would be to rename the folders a bit so that they cannot be mistaken for years.
If your template is not already using archive view, you could try the following two (hackish) solutions
a. move your code into the k_is_archive block (the year would represent the folder).
b. remove the rules for the archive view of the particular template from the .htaccess file.

Hope this helps.
Please let me know.
Spot on KK ... I have changed the folder names from 2011 to 2011-festival and so on - and that is absolutely fine. Thanks so much.
4 posts Page 1 of 1