Dealing with Permalinks and Dynamic Code
-
I have a question on permalinks.
?
I added some code to my template page.php.? The code checks for a specific page ID then generates dynamic content based on two inputs (state and town).
?
I also have code in .htaccess to rewrite my the URL.? I request /consultants/NH/Manchester and it will translate to index.php?page_id=100&state=NH&town=Manchester.
?
If I disable permalinks, this works fine.? If I enable permalinks, the browser gets a 302 redirect to the actual permalink for page_id 100.? In this case /category/consultants-directory.
?
Can someone explain which function executes the 302 redirect.? I can change it to ignore the 302 if the page_id=100.? There could be a better way to do this.? Suggestions?
- The topic ‘Dealing with Permalinks and Dynamic Code’ is closed to new replies.