![]() |
Article URL not working
Not sure where to begin describing my issue... :confused:
I am working with Pretty URLs for my website which is full of Sections and Articles within those Sections. If you chose the "Finance" section, then that "navigation tab" would get shaded and you'd be taken to... http://local.debbie/finance/ The mod_rewrite to make this happen is... Code:
#PRETTY: finance/If you click on one of the Article Summaries on the Finance home page - at the URL above - then you would be taken to a URL like this... http://local.debbie/finance/articles/postage-meters-can-save-you-money Now, before I added the concept of "Sections" to my website, an Article would have been located at a URL like this... http://local.debbie/articles/postage-meters-can-save-you-money And I was using this mod_rewrite... Code:
#PRETTY: articles/postage-meters-can-save-you-moneySo, here is my current problem... If you went to the Article above using my new style of URL... http://local.debbie/finance/articles/postage-meters-can-save-you-money ...then I still want the "Finance" navigation tab highlighted, so that you know what Section you are in. When my website didn't have any Sections, the PHP I was using to accomplish this was... PHP Code:
Unfortunately, now both my PHP and mod_rewrite seem outdated with the addition of "Sections". To trouble-shoot, I echoed the variable $queryString, and am getting this when I go to that Article... Code:
slug=postage-meters-can-save-you-moneySo clearly my PHP isn't seeing that the Article is in the "Finance" section. Could someone help me figure out how to adjust my mod_rewrites and PHP so my Navigation Tabs behave properly like before I added the concept of a "Section" to my website?? I tried this code, but got a 500 Error from Apache... PHP Code:
Here is hoping that my changes to handle Sections didn't break this feature of my website?! :( Thanks, Debbie |
| All times are GMT +1. The time now is 03:14 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.