I'm looking for a method to make Wordpress extend its permalink structure with virtual folders to ensure that they may be used to load dynamic content (ie. from the database) but keeping the Wordpress header and template system therefore the my dynamic content can be put within the layout.
Where customfolder and product1 aren't pages or groups contained in the Wordpress database. Wordpress normally requires that they're produced based on nevertheless structure to operate, otherwise it returns a 404 error.
If only to make use of /customfolder/ to increase the permalinks with psuedo/virtual pages. The above mentioned link would hence be rerouted internally to express items.php?product=$product1&template=style1. By doing this I'm able to make use of the url to produce a limitless quantity of pages that loads dynamic content from the database and determining which template to make use of for your folder.
It ought to be easy to setup different permalink folders to load different files, to ensure that /product/map/ is going to be rerouted to ie. map.php
I've attempted both .htaccess and also the internal Wordpress_rewrite function with no success. I usually finish up getting 404 errors. I understand you can do that through Wordpress and I've come across good examples which have been near to things i am attempting to do but to date I haven't develop a functional solution. This is actually the right one to date: http://www.binarymoon.co.uk/2010/02/creating-wordpress-permalink-structure-custom-content/
Any assistance is appreciated!
I am the writer from the Virtual Pages wordpress plugin for WordPress. The wordpress plugin continues to be beta for exactly this reason. Many people install my wordpress plugin on their own site and delay pills work great. Others do the installation and then get 404s on their own virtual pathways. It's strange. It's unpredictable. It drives me batty.
I am surprised to listen to .htaccess did not meet your needs.
Have you try the easy 301 Redirects wordpress plugin? That may also make something similar to the work.
@csixty4 I handled to sort out an answer that does things i desired to do, pretty much. I haven't attempted any plug ins to produce virtual pages. Things I did ended up being to setup like .htaccess such as this:
RewriteRule ^products/$ /path/mypage.php [L] RewriteRule ^products/(help|support)[^/]? /path/mypage.php?type=$1 [L]
After which I produced the file(s) I desired and known as the Wordpress loader and defined the active theme shouldn't be loaded to ensure that I'm able to output content where I would like it.
<?php define('WP_USE_THEMES', false); require("/wp-path/wp-blog-header.php"); get_header(); ?> My custom content goes here <?php get_footer(); ?>
If anybody have suggestions for enhancements or tips to get this to more effective I'd be happy to listen to you out of trouble.