I've done this a dozens times outside of wordpress but for some reason I can't get it to work in wordpress and not sure why. Here's what I'm trying to achieve.
The page http://wordpress.dev/digital/
has tabbed content, the tabs are books, movies, magazines, etc.
User visits url http://wordpress.dev/digital/movies/
Display the digital
page with the tabbed content, but instead of showing the default 1st tab, the movies tab is shown. The url stays the same in the browser but now wordpress sees http://wordpress.dev/digital/?tab=movies
. So on my digital
page I can check what tab the user is trying to view and make that tab visible.
Here's an example of code that's not working on wordpress but I've used before on static sites. Perhaps this wouldn't work on a static site either, but I've done this before using a similar rewrite rule.
RewriteRule ^digital/(movies)[/]?$ http://wordpress.dev/digital/tab=$1 [L]
0 comments:
Post a Comment