I got the default WordPress .htaccess which is configured on the structure of post names (http://exampleblog.com/dev/the-post-slug)
This is the .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /dev/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /dev/index.php [L]
</IfModule>
# END WordPress
What I need to is that in a URL like http://exampleblog.com/dev/the-post-slug I could add my own sulfixes, like http://exampleblog.com/dev/the-post-slug/mydemo, and I want to point to that something that now is http://exampleblog.com/dev/wp-content/themes/the-theme/my-custom-folder
So I need to access this URL http://exampleblog.com/dev/the-post-slug/mydemo to show the content of this real patch http://exampleblog.com/dev/wp-content/themes/the-theme/my-custom-folder and I just can’t find a way
Thanks
For the first part of your question, you could just make “the-post-slug” a parent page of “mydemo” and the url is automatically done how you want.
For the second part, you could write a shortcode that lets you load in content from a different page (like with file_get_contents, an iframe, or even just an actual redirect if you don’t care if the URL stays the same, just that it exists to get the user where they need to be). In the case of a redirect code, you’d be better off with using a hook though, since a shortcode could be run after headers are already sent to the browser.
That way you won’t have to worry about your extra .htaccess rules being overwritten by WordPress, and it will all be manageable in the future with the CMS, rather than having to edit any files.